Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/cpp0x/alignas2.C @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
// 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);