1 // { dg-do compile { target c++17 } }
2 // { dg-options "-O -gdwarf-5 -dA -gno-strict-dwarf" }
3 // { dg-require-weak "" }
4 // { dg-final { scan-assembler-not "DW_TAG_member" { xfail *-*-aix* } } }
5 
6 inline int a;
7 struct S
8 {
9   static inline double b = 4.0;
10   static constexpr int c = 2;
11   static constexpr inline char d = 3;
12   static const int j = 7;
13   static int k;
14   static double l;
15 } s;
16 const int S::j;
17 int S::k = 8;
18 template <int N>
19 inline int e = N;
20 int &f = e<2>;
21 template <int N>
22 struct T
23 {
24   static inline double g = 4.0;
25   static constexpr int h = 2;
26   static inline constexpr char i = 3;
27   static const int m = 8;
28   static int n;
29   static double o;
30 };
31 T<5> t;
32 template <>
33 const int T<5>::m;
34 template <>
35 int T<5>::n = 9;
36