projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8779818
)
add loop and switch variants
author
Jason Merrill
<jason@gcc.gnu.org>
Mon, 19 Aug 2002 10:48:15 +0000
(06:48 -0400)
committer
Jason 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
patch
|
blob
|
history
diff --git
a/gcc/testsuite/g++.old-deja/g++.jason/cond.C
b/gcc/testsuite/g++.old-deja/g++.jason/cond.C
index b613838797dd89209c782b4b3d1d066f2017ceb0..3cfc6dbb79747b1a67dfa862c9a1fe73ba7ec17c 100644
(file)
--- 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 -
;