From 5747af32ee2add9e03ce0ddb0b0db973cc033d3b Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Fri, 5 Mar 1999 06:27:06 -0500 Subject: [PATCH] new From-SVN: r25599 --- gcc/testsuite/g++.old-deja/g++.pt/array4.C | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 gcc/testsuite/g++.old-deja/g++.pt/array4.C 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); +} -- 2.30.2