* g++.dg/parse/parse2.C: New test.
authorNeil Booth <neil@daikokuya.co.uk>
Wed, 1 Jan 2003 00:38:07 +0000 (00:38 +0000)
committerNeil Booth <neil@gcc.gnu.org>
Wed, 1 Jan 2003 00:38:07 +0000 (00:38 +0000)
From-SVN: r60726

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/parse/parse2.C [new file with mode: 0644]

index c6d9a7b2824aff4c6a32e046505d314e9fb2dc32..8cbe76061a8829a53b39fe60bf82f8b8f5798995 100644 (file)
@@ -1,3 +1,7 @@
+2003-01-01  Neil Booth  <neil@daikokuya.co.uk>
+
+       * g++.dg/parse/parse2.C: New test.
+
 2003-01-01  Neil Booth  <neil@daikokuya.co.uk>
 
        * g++.dg/template/friend11.C: New test.
diff --git a/gcc/testsuite/g++.dg/parse/parse2.C b/gcc/testsuite/g++.dg/parse/parse2.C
new file mode 100644 (file)
index 0000000..80a9e38
--- /dev/null
@@ -0,0 +1,8 @@
+/* PR c++/67 */
+/* { dg-do compile } */
+
+template <class T> struct foo {
+   static const int bar [3];
+};
+// Used to fail if 2+1 rather than 3.
+template <class T> const int foo<T>::bar [2+1] = { 0, 0, 0 };