blob: 8a0632b12588435ccd8f2dc386ec53b478268149 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
// DR 1453
// { dg-do compile { target c++11 } }
struct S {
constexpr S() : n{} { }
volatile int n;
};
static_assert(!__is_literal_type(S), "");
struct Z {
volatile int m;
};
struct T {
constexpr T() : n{} { }
Z n;
};
static_assert(!__is_literal_type(T), "");
struct U : Z {
constexpr U() : Z{} { }
};
static_assert(!__is_literal_type(U), "");
|