repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
PR c++/85553
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
ext
/
is_std_layout1.C
blob
007c94a453ca50248c54829fe74fd2c3b5b57222
1
// { dg-do compile { target c++11 } }
2
3
template <int> struct E { };
4
5
struct E1: E<0>, E<1> { };
6
struct E2: E<2>, E<3> { };
7
8
struct A1x { int n; };
9
struct D2: A1x, E1, E2 { };
10
11
#define SA(X) static_assert((X),#X)
12
SA(__is_standard_layout (D2));