Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/ext/tmplattr9.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 // PR c++/34937, 34962 |
2 // { dg-require-weak "" } | |
3 // { dg-options "" } | |
131 | 4 // { dg-require-effective-target alloca } |
111 | 5 |
6 struct A | |
7 { | |
8 static const int i; | |
9 }; | |
10 | |
11 template<int> void foo() | |
12 { | |
13 int x[A::i] __attribute((vector_size(8))); | |
14 } | |
15 | |
16 template<int> struct B | |
17 { | |
18 enum { a, b = a }; | |
19 void bar(B<b>) __attribute((weak)); | |
20 }; | |
21 | |
22 void f() | |
23 { | |
24 foo<0>(); | |
25 B<0> b; | |
26 b.bar (B<B<0>::b>()); | |
27 } |