From 719757039fc4e4f3318d6999b2d5b2787f6838f6 Mon Sep 17 00:00:00 2001 From: Richard Trieu Date: Sat, 6 Jan 2018 03:20:59 +0000 Subject: 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 --- clang/test/Modules/Inputs/odr_hash-Unresolved/function.h | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 clang/test/Modules/Inputs/odr_hash-Unresolved/function.h (limited to 'clang/test/Modules/Inputs/odr_hash-Unresolved/function.h') diff --git a/clang/test/Modules/Inputs/odr_hash-Unresolved/function.h b/clang/test/Modules/Inputs/odr_hash-Unresolved/function.h new file mode 100644 index 00000000000..de75b2c92ef --- /dev/null +++ b/clang/test/Modules/Inputs/odr_hash-Unresolved/function.h @@ -0,0 +1,6 @@ +#ifndef Function +#define Function +namespace A { +static void Check(int*, int) {} +} +#endif -- cgit v1.2.3