Daniel Dunbar | 2d6ca8d | 2008-08-21 02:51:29 +0000 | [diff] [blame^] | 1 | // RUN: clang %s -emit-llvm -o %t |
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 | } |