| Chris Lattner | 32a521e | 2003-04-25 18:44:30 +0000 | [diff] [blame] | 1 | |
| 2 | /* It is unlikely that LLVM will ever support nested functions, but if it does, | ||||
| 3 | here is a testcase. */ | ||||
| 4 | |||||
| Chris Lattner | e809b05 | 2003-02-12 21:45:39 +0000 | [diff] [blame] | 5 | main() |
| 6 | { | ||||
| 7 | __label__ l; | ||||
| 8 | |||||
| 9 | void*x() | ||||
| 10 | { | ||||
| 11 | goto l; | ||||
| 12 | } | ||||
| 13 | |||||
| 14 | x(); | ||||
| 15 | abort(); | ||||
| 16 | return; | ||||
| 17 | l: | ||||
| 18 | exit(0); | ||||
| 19 | } | ||||
| 20 | |||||
| 21 | |||||
| 22 | |||||
| 23 | |||||
| 24 | |||||