2 // { dg-options "-std=c++17 -Wno-deprecated" }
3 // { dg-require-weak "" }
4 // { dg-additional-sources "inline-var1a.C" }
6 #include "inline-var1.h"
8 static inline int var19 = bar (0);
9 static int inline var20 = bar (1);
10 extern inline int var23;
11 inline int var21 = foo (6);
12 inline int var22 = foo (7);
13 extern inline int var23, var22;
14 inline int var23 = foo (8);
16 static int v, w = 64 + 2;
31 if ((x >> 4) != (w >> 4))
33 if ((x & 15) != 0 || (w & 15) != 2)
44 const int &ref3 = S::var3;
46 const int &ref5 = S::var5;
47 const int &ref6 = N::var6;
49 double &ref8 = N::var8;
50 double &ref9 = S::var9;
51 const int &ref11 = S::var11;
54 int &ref14 = U::var14;
57 int &ref17 = U::var17;
58 const double &ref18 = U::var18;
64 const int &ref24 = Y<int>::var24;
65 int &ref25 = Y<int>::var25;
66 int &ref26 = Y<int>::var26;
67 int &ref27 = var27<int>;
68 const int &ref28 = Y<int>::var28;
69 const char &ref24a = Y<char>::var24;
70 char &ref25a = Y<char>::var25;
71 int &ref26a = Y<char>::var26;
72 char &ref27a = var27<char>;
73 const char &ref28a = Y<char>::var28;
76 extern const int &alt3;
78 extern const int &alt5;
79 extern const int &alt6;
83 extern const int &alt11;
90 extern const double &alt18;
96 extern const int &alt24;
100 extern const int &alt28;
101 extern const char &alt24a;
105 extern const char &alt28a;
121 || sizeof (N::var10) != 1
135 || Y<int>::var24 != 6
136 || Y<int>::var25 != 7
137 || Y<int>::var26 != 8
139 || Y<int>::var28 != 10
140 || Y<char>::var24 != 6
141 || Y<char>::var25 != 7
142 || Y<char>::var26 != 8
144 || Y<char>::var28 != 10)
210 || &ref24a != &alt24a
211 || &ref25a != &alt25a
212 || &ref26a != &alt26a
213 || &ref27a != &alt27a
214 || &ref28a != &alt28a)