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
* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
alignas7.C
blob
a209250af9b7cb568e361871e9b5f43b87625948
1
// PR c++/71513
2
// { dg-do compile { target c++11 } }
3
4
template < int N, typename T >
5
struct A
6
{
7
enum alignas (N) E : T;
8
};
9
10
#define SA(X) static_assert((X), #X)
11
12
constexpr int al = alignof(double);
13
SA(alignof(A<al,char>::E) == al);