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 | f3b18623a359681adf0d397d4767d3a5920441c7 (patch) | |
tree | 4402de253fef542d78c787182ab16e0d4da08b7e | |
parent | d6116cc4730245f09d458167aa94f2ea6e2b2b53 (diff) |
merge an indirect goto test into statements, add another
hairier (but nonsensical) example.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83951 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/CodeGen/PR3869-indirect-goto-long.c | 4 | ||||
-rw-r--r-- | test/CodeGen/statements.c | 20 |
2 files changed, 20 insertions, 4 deletions
diff --git a/test/CodeGen/PR3869-indirect-goto-long.c b/test/CodeGen/PR3869-indirect-goto-long.c deleted file mode 100644 index 140e4ec14a..0000000000 --- a/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/test/CodeGen/statements.c b/test/CodeGen/statements.c index 1ff7601adf..c50d1d5664 100644 --- a/test/CodeGen/statements.c +++ b/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; } + |