Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.pt/array4.C

raw
1 // { dg-do assemble }
2 // Test to make sure that the array bounds are treated as an expression
3 // in template parm substitution.
4
5 // Written by Jason Merrill <[email protected]>
6
7
8 template <class T> void f (T t) { int ar[sizeof (T)]; }
9
10 int
11 main ()
12 {
13 f (1);
14 }