1*8fbe78f6SDaniel Dunbar // RUN: %clang_cc1 %s -emit-llvm -o - 2f5291d28SLauro Ramos Venancio struct test; 3f5291d28SLauro Ramos Venancio 4f5291d28SLauro Ramos Venancio typedef void (*my_func) (struct test *); 5f5291d28SLauro Ramos Venancio my_func handler; 6f5291d28SLauro Ramos Venancio 7f5291d28SLauro Ramos Venancio struct test { 8f5291d28SLauro Ramos Venancio char a; 9f5291d28SLauro Ramos Venancio }; 10f5291d28SLauro Ramos Venancio f(struct test * t)11f5291d28SLauro Ramos Venanciochar f(struct test *t) { 12f5291d28SLauro Ramos Venancio return t->a; 13f5291d28SLauro Ramos Venancio } 14