From: Jason Merrill Date: Mon, 19 Aug 2002 10:48:15 +0000 (-0400) Subject: add loop and switch variants X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d187728946542d76469f5cf76712328aa4cbf5a9;p=gcc.git add loop and switch variants From-SVN: r56437 --- diff --git a/gcc/testsuite/g++.old-deja/g++.jason/cond.C b/gcc/testsuite/g++.old-deja/g++.jason/cond.C index b613838797d..3cfc6dbb797 100644 --- a/gcc/testsuite/g++.old-deja/g++.jason/cond.C +++ b/gcc/testsuite/g++.old-deja/g++.jason/cond.C @@ -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 - ;