[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Modules / Inputs / stress1 / merge00.h
blob0aeb6ce0087fa3fa13dc11fad85c364612ac59a3
1 #ifndef STRESS1_MERGE00_H
2 #define STRESS1_MERGE00_H
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}}
12 #ifdef MERGE_NO_REEXPORT
13 #include "merge_no_reexport.h"
14 #endif
16 #include "common.h"
17 #include "m00.h"
18 #include "m01.h"
19 #include "m02.h"
20 #include "m03.h"
22 inline int g() { return N00::S00('a').method00('b') + (int)S00(42) + function00(42); }
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(); }
28 #pragma weak pragma_weak02
29 #pragma weak pragma_weak05
31 extern "C" int pragma_weak02();
32 int pragma_weak05;
34 #endif