view gcc/testsuite/g++.dg/ext/attr-type1.C @ 152:2b5abeee2509

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents
children
line wrap: on
line source

// PR c++/90750
// { dg-do compile { target c++11 } }

template <typename> struct S
{
  static const int b = 64;
};

template <typename a> struct T: S<a>
{
  using A = S<a>;
  using A::b;
  char* __attribute__((aligned(b))) c;
};

T<int> t;

#define SA(X) static_assert (X,#X)
SA (alignof(T<int>) == S<int>::b);