| Daniel Dunbar | d7d5f02 | 2009-03-24 02:24:46 +0000 | [diff] [blame] | 1 | // RUN: clang-cc %s -emit-llvm -o - |
| Lauro Ramos Venancio | 8df106e | 2008-01-30 21:21:08 +0000 | [diff] [blame] | 2 | struct test; |
| 3 | |||||
| 4 | typedef void (*my_func) (struct test *); | ||||
| 5 | my_func handler; | ||||
| 6 | |||||
| 7 | struct test { | ||||
| 8 | char a; | ||||
| 9 | }; | ||||
| 10 | |||||
| 11 | char f(struct test *t) { | ||||
| 12 | return t->a; | ||||
| 13 | } | ||||