Skip to content

Commit 7b339e4

Browse files
committed
Merge r128168 to unbreak test.
llvm-svn: 128365
1 parent 2ff2fd8 commit 7b339e4

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

clang/test/SemaCXX/goto.cpp

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,17 @@
22

33
// PR9463
44
double *end;
5-
void f() {
5+
void f(bool b1, bool b2) {
66
{
7-
int end = 0;
8-
goto end;
9-
end = 1;
7+
do {
8+
int end = 0;
9+
if (b2) {
10+
do {
11+
goto end;
12+
} while (b2);
13+
}
14+
end = 1;
15+
} while (b1);
1016
}
1117

1218
end:

0 commit comments

Comments
 (0)