]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
This commit was manufactured by cvs2svn to create branch
authorNo Author <no-author@gcc.gnu.org>
Sun, 1 Dec 2002 20:52:55 +0000 (20:52 +0000)
committerNo Author <no-author@gcc.gnu.org>
Sun, 1 Dec 2002 20:52:55 +0000 (20:52 +0000)
'gcc-3_2-branch'.

From-SVN: r59699

gcc/testsuite/g++.dg/template/varmod1.C [new file with mode: 0644]

diff --git a/gcc/testsuite/g++.dg/template/varmod1.C b/gcc/testsuite/g++.dg/template/varmod1.C
new file mode 100644 (file)
index 0000000..21fdcb6
--- /dev/null
@@ -0,0 +1,10 @@
+// { dg-options "-w" }
+
+template<typename T> void foo(T);
+void bar()
+{
+  int i;
+  int A[i][i]; 
+  foo(A); // { dg-error } 
+}