diff options
Diffstat (limited to 'test/CodeGen/statements.c')
-rw-r--r-- | test/CodeGen/statements.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/CodeGen/statements.c b/test/CodeGen/statements.c index 1ff7601adf68..45bbd9ac024f 100644 --- a/test/CodeGen/statements.c +++ b/test/CodeGen/statements.c @@ -11,3 +11,25 @@ bar(); int test2() { return; } void test3() { return 4; } + +void test4() { +bar: +baz: +blong: +bing: + ; + +// PR5131 +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; } + |