1 | #ifndef STRESS1_MERGE00_H |
2 | #define STRESS1_MERGE00_H |
3 | |
4 | // These don't match the imported declarations because we import them from |
5 | // modules which are built in isolation of the current header's pragma state |
6 | // much like they are built in isolation of the incoming macro state. |
7 | // FIXME: We should expect warnings here but we can't because verify doesn't |
8 | // work for modules. |
9 | //#pragma weak pragma_weak01 // expected-warning {{weak identifier 'pragma_weak01' never declared}} |
10 | //#pragma weak pragma_weak04 // expected-warning {{weak identifier 'pragma_waek04' never declared}} |
11 | |
12 | #ifdef MERGE_NO_REEXPORT |
13 | #include "merge_no_reexport.h" |
14 | #endif |
15 | |
16 | #include "common.h" |
17 | #include "m00.h" |
18 | #include "m01.h" |
19 | #include "m02.h" |
20 | #include "m03.h" |
21 | |
22 | inline int g() { return N00::S00('a').method00('b') + (int)S00(42) + function00(42); } |
23 | |
24 | // Use implicit special memebers again for S01 to ensure that we merge them in |
25 | // successfully from m01. |
26 | inline N00::S01 h() { return N00::S01(); } |
27 | |
28 | #pragma weak pragma_weak02 |
29 | #pragma weak pragma_weak05 |
30 | |
31 | extern "C" int pragma_weak02(); |
32 | int pragma_weak05; |
33 | |
34 | #endif |
35 | |