aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/ext/is_std_layout2.C
blob: 02dc4f7ffb53b7f443fd2b5c1a9b3f0eda821a25 (plain)
1
2
3
4
5
6
// { 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), "");