Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/alignas2.C

raw
1 // PR c++/65734
2 // { dg-do compile { target c++11 } }
3 // { dg-options "" }
4
5 template <typename T>
6 struct BVector
7 {
8 T t;
9 };
10 BVector<int> m;
11
12 template <template <class> class T>
13 struct BV2
14 {
15 typedef T<float> value_type alignas (16);
16 value_type v;
17 };
18 BV2<BVector> m2;
19
20 #define SA(X) static_assert((X),#X)
21 SA(alignof (BV2<BVector>::value_type) == 16);