aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/ext/attr-type1.C
blob: 6e84cccea1f12d0dc0304ca3f0b463b932570ca2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// 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);