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