Permalink
Browse files

Merge r128168 to unbreak test.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/branches/release_29@128365 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information...
1 parent ffbcf61 commit 059773e8917ce69e2ce5ad8f702b2ac99a62a9cb @isanbard isanbard committed Mar 27, 2011
Showing with 10 additions and 4 deletions.
  1. +10 −4 test/SemaCXX/goto.cpp
View
14 test/SemaCXX/goto.cpp
@@ -2,11 +2,17 @@
// PR9463
double *end;
-void f() {
+void f(bool b1, bool b2) {
{
- int end = 0;
- goto end;
- end = 1;
+ do {
+ int end = 0;
+ if (b2) {
+ do {
+ goto end;
+ } while (b2);
+ }
+ end = 1;
+ } while (b1);
}
end:

0 comments on commit 059773e

Please sign in to comment.