Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 %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 | } |