diff options
author | Chris Lattner <sabre@nondot.org> | 2009-10-13 06:52:43 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-10-13 06:52:43 +0000 |
commit | 9842a4dcb1356fa225528b4d14ae48430fe6191c (patch) | |
tree | 453caaca0d2aad36918bf3c9a25e9d3a618be904 | |
parent | cdf01b5d82a58c9f5ba51bd97e9c72f844c7b733 (diff) | |
download | bcm5719-llvm-9842a4dcb1356fa225528b4d14ae48430fe6191c.tar.gz bcm5719-llvm-9842a4dcb1356fa225528b4d14ae48430fe6191c.zip |
merge an indirect goto test into statements, add another
hairier (but nonsensical) example.
llvm-svn: 83951
-rw-r--r-- | clang/test/CodeGen/PR3869-indirect-goto-long.c | 4 | ||||
-rw-r--r-- | clang/test/CodeGen/statements.c | 20 |
2 files changed, 20 insertions, 4 deletions
diff --git a/clang/test/CodeGen/PR3869-indirect-goto-long.c b/clang/test/CodeGen/PR3869-indirect-goto-long.c deleted file mode 100644 index 140e4ec14a8..00000000000 --- a/clang/test/CodeGen/PR3869-indirect-goto-long.c +++ /dev/null @@ -1,4 +0,0 @@ -// RUN: clang-cc -emit-llvm-bc -o - %s -// PR3869 -int a(long long b) { goto *b; } - 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; } + |