blob: 5eefb44992f2ac88ccc0a3b7660588d85febde8c [file] [log] [blame]
Richard Smith675d2792014-06-16 20:26:19 +00001extern int mergeUsedFlag;
Richard Smith88ebade2014-08-23 01:45:27 +00002
3typedef struct {
4 int n;
5 int m;
6} NameForLinkage;
7extern NameForLinkage name_for_linkage;
Richard Smithb1108732014-08-26 23:29:11 +00008
9struct HasVirtualFunctions {
10 virtual void f();
11};
12struct OverridesVirtualFunctions : HasVirtualFunctions {
13 void f();
14};
15extern OverridesVirtualFunctions overrides_virtual_functions;
Richard Smithb602c7f2014-08-29 22:33:38 +000016extern "C" void ExternCFunction();
Richard Smith70d58502014-08-30 00:04:23 +000017
18typedef struct {
19 struct Inner {
20 int n;
21 };
22} NameForLinkage2;
23auto name_for_linkage2_inner_b = NameForLinkage2::Inner();
24typedef decltype(name_for_linkage2_inner_b) NameForLinkage2Inner;
Richard Smithf4634362014-09-03 23:11:22 +000025
26namespace Aliased { extern int b; }
27namespace Alias = Aliased;
Richard Smithf81c2cc2015-02-27 01:57:00 +000028
29struct InhCtorA { InhCtorA(int); };
30struct InhCtorB : InhCtorA { using InhCtorA::InhCtorA; };