3 // PR35939: MicrosoftMangle.cpp triggers an assertion failure on this test.
4 // UNSUPPORTED: system-windows
7 // RUN: -I %S/Inputs/odr_hash-Friend \
8 // RUN: -emit-obj -o /dev/null \
10 // RUN: -fimplicit-module-maps \
11 // RUN: -fmodules-cache-path=%t/modules.cache \
12 // RUN: -std=c++11 -x c++ %s -verify -DTEST1
15 // RUN: -I %S/Inputs/odr_hash-Friend \
16 // RUN: -emit-obj -o /dev/null \
18 // RUN: -fimplicit-module-maps \
19 // RUN: -fmodules-cache-path=%t/modules.cache \
20 // RUN: -std=c++11 -x c++ %s -verify -DTEST2
23 // RUN: -I %S/Inputs/odr_hash-Friend \
24 // RUN: -emit-obj -o /dev/null \
26 // RUN: -fimplicit-module-maps \
27 // RUN: -fmodules-cache-path=%t/modules.cache \
28 // RUN: -std=c++11 -x c++ %s -verify -DTEST3
31 // RUN: -I %S/Inputs/odr_hash-Friend \
32 // RUN: -emit-obj -o /dev/null \
34 // RUN: -fimplicit-module-maps \
35 // RUN: -fmodules-cache-path=%t/modules.cache \
36 // RUN: -std=c++11 -x c++ %s -verify -DTEST3
39 // RUN: -I %S/Inputs/odr_hash-Friend \
40 // RUN: -emit-obj -o /dev/null \
42 // RUN: -fimplicit-module-maps \
43 // RUN: -fmodules-cache-path=%t/modules.cache \
44 // RUN: -std=c++11 -x c++ %s -verify -DTEST3
50 // expected-no-diagnostics
58 // expected-no-diagnostics
66 // expected-no-diagnostics
74 // expected-error@Bad.h:* {{'Check' has different definitions in different modules; definition in module 'Bad' first difference is function body}}
75 // expected-note@Box.h:* {{but in 'Box' found a different body}}
83 // expected-error@Bad.h:* {{'Check' has different definitions in different modules; definition in module 'Bad' first difference is function body}}
84 // expected-note@Box.h:* {{but in 'Box' found a different body}}