[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Modules / Inputs / cxx-decls-merged.h
blob5eefb44992f2ac88ccc0a3b7660588d85febde8c
1 extern int mergeUsedFlag;
3 typedef struct {
4 int n;
5 int m;
6 } NameForLinkage;
7 extern NameForLinkage name_for_linkage;
9 struct HasVirtualFunctions {
10 virtual void f();
12 struct OverridesVirtualFunctions : HasVirtualFunctions {
13 void f();
15 extern OverridesVirtualFunctions overrides_virtual_functions;
16 extern "C" void ExternCFunction();
18 typedef struct {
19 struct Inner {
20 int n;
22 } NameForLinkage2;
23 auto name_for_linkage2_inner_b = NameForLinkage2::Inner();
24 typedef decltype(name_for_linkage2_inner_b) NameForLinkage2Inner;
26 namespace Aliased { extern int b; }
27 namespace Alias = Aliased;
29 struct InhCtorA { InhCtorA(int); };
30 struct InhCtorB : InhCtorA { using InhCtorA::InhCtorA; };