summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/PCH/stmts.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/PCH/stmts.h b/clang/test/PCH/stmts.h
index 685811ad080..f1cd8152680 100644
--- a/clang/test/PCH/stmts.h
+++ b/clang/test/PCH/stmts.h
@@ -33,17 +33,25 @@ void f0(int x) {
continue;
} else if (x < 5)
break;
+ else
+ goto done;
}
do {
x++;
} while (x < 10);
+ almost_done:
for (int y = x; y < 20; ++y) {
if (x + y == 12)
return;
+ else if (x - y == 7)
+ goto almost_done;
}
+ done:
+ x = x + 2;
+
int z = x, *y, j = 5;
}
OpenPOWER on IntegriCloud