Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.old-deja/g++.pt/dynarray.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 // { dg-do assemble } |
2 // { dg-options "" } | |
131 | 3 // { dg-require-effective-target alloca } |
111 | 4 // Origin: Theo Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr> |
5 | |
6 inline const unsigned& f(unsigned const& a) { | |
7 return a; | |
8 } | |
9 | |
10 template <class T> | |
11 void | |
12 g(const unsigned n) | |
13 { | |
14 double D[f(n)]; | |
15 } | |
16 | |
17 template <class T,class U> | |
18 void g(unsigned const int) { } | |
19 | |
20 int main() | |
21 { | |
22 g<double>(18); | |
23 } |