summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/alignas7.C
blob: a209250af9b7cb568e361871e9b5f43b87625948 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// PR c++/71513
// { dg-do compile { target c++11 } }

template < int N, typename T >
struct A
{ 
  enum alignas (N) E : T;
};

#define SA(X) static_assert((X), #X)

constexpr int al = alignof(double);
SA(alignof(A<al,char>::E) == al);