From: Jason Merrill Date: Fri, 5 Mar 1999 11:27:06 +0000 (-0500) Subject: new X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5747af32ee2add9e03ce0ddb0b0db973cc033d3b;p=gcc.git new From-SVN: r25599 --- diff --git a/gcc/testsuite/g++.old-deja/g++.pt/array4.C b/gcc/testsuite/g++.old-deja/g++.pt/array4.C new file mode 100644 index 00000000000..fab2d5b1527 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.pt/array4.C @@ -0,0 +1,14 @@ +// Test to make sure that the array bounds are treated as an expression +// in template parm substitution. + +// Written by Jason Merrill + +// Build don't link: + +template void f (T t) { int ar[sizeof (T)]; } + +int +main () +{ + f (1); +}