Chris Lattner | c8e9cd6 | 2009-01-27 18:56:08 +0000 | [diff] [blame^] | 1 | // RUN: clang %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 | } |