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 #include "common.h"
13 #include "m00.h"
14 #include "m01.h"
15 #include "m02.h"
16 #include "m03.h"
17
g()18 inline int g() { return N00::S00('a').method00('b') + (int)S00(42) + function00(42); }
19
20 // Use implicit special memebers again for S01 to ensure that we merge them in
21 // successfully from m01.
h()22 inline N00::S01 h() { return N00::S01(); }
23
24 #pragma weak pragma_weak02
25 #pragma weak pragma_weak05
26
27 extern "C" int pragma_weak02();
28 int pragma_weak05;
29
30 #endif
31