PCH support for indirect gotos and address-of-label expressions.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69369 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/PCH/stmts.h b/test/PCH/stmts.h
index f1cd815..10842e8 100644
--- a/test/PCH/stmts.h
+++ b/test/PCH/stmts.h
@@ -68,3 +68,21 @@
}
const char* what_is_my_name(void) { return __func__; }
+
+int computed_goto(int x) {
+ start:
+ x = x << 1;
+ void *location = &&start;
+
+ if (x > 17)
+ location = &&done;
+
+ while (x > 12) {
+ --x;
+ if (x == 15)
+ goto *location;
+ }
+
+ done:
+ return 5;
+}