]> gcc.gnu.org Git - gcc.git/blob - gcc/testsuite/g++.dg/cpp0x/gen-attrs-49.C
PR c++/92590 - wrong handling of inherited default ctor.
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / gen-attrs-49.C
1 // { dg-do compile { target c++11 } }
2
3 typedef char layout_type;
4
5 template<class> struct A {
6 layout_type member alignas (double);
7 };
8
9 static_assert (alignof (A<int>) == alignof (double),
10 "alignment of struct A must be alignof (double)");
11
12 template<class> struct alignas (alignof (long double)) B {
13 layout_type member;
14 };
15
16 static_assert (alignof (B<int>) == alignof (long double),
17 "alignment of struct A must be alignof (double double)");
This page took 0.036541 seconds and 5 git commands to generate.