teak-llvm/clang/test/Modules/odr_hash-Unresolved.cpp
Richard Trieu 719757039f Test case for r321396
Any hashing for methods should be able to compile this test case without
emitting an error.  Since the class and method come from the same header from
each module, there should be no messages about ODR violations.

llvm-svn: 321924
2018-01-06 03:20:59 +00:00

15 lines
484 B
C++

// RUN: rm -rf %t
// RUN: %clang_cc1 -fmodules -fmodules-cache-path=%t/modules.cache \
// RUN: -I %S/Inputs/odr_hash-Unresolved \
// RUN: -fmodules \
// RUN: -fimplicit-module-maps \
// RUN: -fmodules-cache-path=%t/modules.cache \
// RUN: -fmodules-local-submodule-visibility \
// RUN: -std=c++11 -x c++ %s -fsyntax-only
// Note: There is no -verify in the run line because some error messages are
// not captured from the module building stage.
#include "Module2/include.h"