summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/statements.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CodeGen/statements.c')
-rw-r--r--clang/test/CodeGen/statements.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/clang/test/CodeGen/statements.c b/clang/test/CodeGen/statements.c
index 1ff7601adf6..c50d1d5664c 100644
--- a/clang/test/CodeGen/statements.c
+++ b/clang/test/CodeGen/statements.c
@@ -11,3 +11,23 @@ bar();
int test2() { return; }
void test3() { return 4; }
+
+void test4() {
+bar:
+baz:
+blong:
+bing:
+ ;
+static long x = &&bar; // - &&baz;
+static long y = &&baz;
+ &&bing;
+ &&blong;
+ if (y)
+ goto *y;
+
+ goto *x;
+}
+
+// PR3869
+int test5(long long b) { goto *b; }
+
OpenPOWER on IntegriCloud