Debian Codegraph @

gcc/testsuite/g++.dg/ext/attrib31.C

raw
1 // PR c++/35097
2
3 template<int> struct A;
4
5 template<> struct A<0>
6 {
7 typedef int X __attribute((aligned(4)));
8 };
9
10 template<typename T> void foo(const A<0>::X&, T);
11
12 void bar()
13 {
14 foo(A<0>::X(), 0);
15 }