summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/SemaCXX/goto.cpp14
1 files changed, 10 insertions, 4 deletions
diff --git a/test/SemaCXX/goto.cpp b/test/SemaCXX/goto.cpp
index c07e942473..d8d5ec51f6 100644
--- a/test/SemaCXX/goto.cpp
+++ b/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: