]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
This commit was manufactured by cvs2svn to create branch
authorNo Author <no-author@gcc.gnu.org>
Fri, 11 Oct 2002 22:42:21 +0000 (22:42 +0000)
committerNo Author <no-author@gcc.gnu.org>
Fri, 11 Oct 2002 22:42:21 +0000 (22:42 +0000)
'gcc-3_2-branch'.

From-SVN: r58069

gcc/testsuite/g++.dg/ext/vlm1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/ext/vlm2.C [new file with mode: 0644]

diff --git a/gcc/testsuite/g++.dg/ext/vlm1.C b/gcc/testsuite/g++.dg/ext/vlm1.C
new file mode 100644 (file)
index 0000000..61628e6
--- /dev/null
@@ -0,0 +1,13 @@
+// { dg-options "" }
+
+template <class T> struct A {};
+struct B {
+  static const int s;
+  A<int[s]> a; // { dg-error "variably modified|no type" }
+};
+const int B::s=16;
+B b;
diff --git a/gcc/testsuite/g++.dg/ext/vlm2.C b/gcc/testsuite/g++.dg/ext/vlm2.C
new file mode 100644 (file)
index 0000000..3a0b335
--- /dev/null
@@ -0,0 +1,13 @@
+// { dg-options "" }
+
+int n;
+
+struct Y
+{
+  void f () {
+    typedef int X[n];
+    struct Z {
+      X x; // { dg-error "variably modified" }
+    };
+  }
+};