summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/alignas2.C
blob: 2e7d051c886d8ce1147bdb06bffab32506aeea33 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// PR c++/65734
// { dg-do compile { target c++11 } }

template <typename T>
struct BVector
{
  T t;
};
BVector<int> m;

template <template <class> class T>
struct BV2
{
  typedef T<float> value_type alignas (16);
  value_type v;
};
BV2<BVector> m2;

#define SA(X) static_assert((X),#X)
SA(alignof (BV2<BVector>::value_type) == 16);