Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
ext
/
is_std_layout2.C
blob: 02dc4f7ffb53b7f443fd2b5c1a9b3f0eda821a25 [
file
] [
log
] [
blame
]
// { dg-do compile { target c++11 } }
// { dg-options "" }
struct
S
{
int
a
[
0
];
};
struct
T
:
public
S
{
int
b
[
0
];
int
c
;
};
static_assert
(!
__is_standard_layout
(
T
),
""
);