add loop and switch variants
authorJason Merrill <jason@gcc.gnu.org>
Mon, 19 Aug 2002 10:48:15 +0000 (06:48 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 19 Aug 2002 10:48:15 +0000 (06:48 -0400)
From-SVN: r56437

gcc/testsuite/g++.old-deja/g++.jason/cond.C

index b613838797dd89209c782b4b3d1d066f2017ceb0..3cfc6dbb79747b1a67dfa862c9a1fe73ba7ec17c 100644 (file)
@@ -17,6 +17,22 @@ int main()
       char j;
     }
 
+  while (int i = 0)            // ERROR - XFAIL *-*-*
+    {
+      int i;                   // ERROR - XFAIL *-*-*
+    }
+
+  for (; int i = 0; )          // ERROR - XFAIL *-*-*
+    {
+      int i;                   // ERROR - XFAIL *-*-*
+    }
+
+  switch (int i = 0)           // ERROR - XFAIL *-*-*
+    {
+    default:
+      int i;                   // ERROR - XFAIL *-*-*
+    }
+
   if (struct A { operator int () { return 1; } } *foo = new A) // ERROR - 
     ;