xref: /llvm-project/clang/test/CodeGen/opaque-pointer.c (revision 8fbe78f6fc7b41d1a4228c126fcb522131150518)
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 Venancio char f(struct test *t) {
12f5291d28SLauro Ramos Venancio   return t->a;
13f5291d28SLauro Ramos Venancio }
14