* doc/extend.texi (Loop-Specific Pragmas): Document pragma GCC unroll.
[official-gcc.git] / gcc / testsuite / g++.dg / ext / tmplattr9.C
blob090257a5f9194c6795a73b2f4498a1965e7af338
1 // PR c++/34937, 34962
2 // { dg-require-weak "" }
3 // { dg-options "" }
5 struct A
7   static const int i;
8 };
10 template<int> void foo()
12   int x[A::i] __attribute((vector_size(8)));
15 template<int> struct B
17   enum { a, b = a };
18   void bar(B<b>) __attribute((weak));
21 void f()
23   foo<0>();
24   B<0> b;
25   b.bar (B<B<0>::b>());