repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Daily bump.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
alignas7.C
blob
90cac3fe24332086c106d4b97420a776252b558a
1
// PR c++/71513
2
// { dg-do compile { target c++11 } }
3
// { dg-options "" }
4
5
template < int N, typename T >
6
struct A
7
{
8
enum alignas (N) E : T;
9
};
10
11
#define SA(X) static_assert((X), #X)
12
13
constexpr int al = alignof(double);
14
SA(alignof(A<al,char>::E) == al);