diff options
author | Chris Lattner <sabre@nondot.org> | 2003-02-12 21:45:39 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-02-12 21:45:39 +0000 |
commit | e809b05f16ccdb097ac9bf28de4ee3971ace946a (patch) | |
tree | 5188a60a9fa677d8db8fbcb828d44dcb9f5eb89b | |
parent | 3aed67875d5bd693bc33765060164b5e2427d6a8 (diff) |
New testcase, for something we may never really want to support :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5548 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/CFrontend/2003-02-12-NonlocalGoto.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/CFrontend/2003-02-12-NonlocalGoto.c b/test/CFrontend/2003-02-12-NonlocalGoto.c new file mode 100644 index 0000000000..736232e915 --- /dev/null +++ b/test/CFrontend/2003-02-12-NonlocalGoto.c @@ -0,0 +1,20 @@ +main() +{ + __label__ l; + + void*x() + { + goto l; + } + + x(); + abort(); + return; +l: + exit(0); +} + + + + + |