Debian Codegraph @

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

raw
1 // PR c++/34937, 34962
2 // { dg-require-weak "" }
3 // { dg-options "" }
4
5 struct A
6 {
7 static const int i;
8 };
9
10 template<int> void foo()
11 {
12 int x[A::i] __attribute((vector_size(8)));
13 }
14
15 template<int> struct B
16 {
17 enum { a, b = a };
18 void bar(B<b>) __attribute((weak));
19 };
20
21 void f()
22 {
23 foo<0>();
24 B<0> b;
25 b.bar (B<B<0>::b>());
26 }