* gcc.dg/array-5.c: Fix VLA decomposition test.
authorRichard Henderson <rth@redhat.com>
Mon, 17 Sep 2001 16:38:59 +0000 (09:38 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Mon, 17 Sep 2001 16:38:59 +0000 (09:38 -0700)
From-SVN: r45654

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/array-5.c

index 40333a375d396c29559c79c9361422c24a4c2556..ae0bb7b94be33382769c5621a6566bfeebda6439 100644 (file)
@@ -1,3 +1,7 @@
+2001-09-17  Richard Henderson  <rth@redhat.com>
+
+       * gcc.dg/array-5.c: Fix VLA decomposition test.
+
 2001-09-16  Neil Booth  <neil@daikokuya.demon.co.uk>
 
        * gcc.dg/cpp/line5.c: New testcase.
index f5321e45238d9f7de21e5ab2f8d8b4305e5f264d..7a8e3ac633d3cea37a7f10d1bc49dcd1f5bbfd02 100644 (file)
@@ -35,7 +35,7 @@ void func(int n, int m)
   {
     /* Compatible, but undefined behavior; (2, 2) is not a constant
        expression, and thus A is a VLA.  */
-    int a[(2, 2)];
+    int a[6][(2, 2)];
     int (*p)[3];
     p = a; /* { dg-bogus "incompatible" "bad vla handling" { xfail *-*-* } } */
   }