xref: /llvm-project/clang/test/CodeGen/opaque-pointer.c (revision 8fbe78f6fc7b41d1a4228c126fcb522131150518)
1 // RUN: %clang_cc1 %s -emit-llvm -o -
2 struct test;
3 
4 typedef void (*my_func) (struct test *);
5 my_func handler;
6 
7 struct test {
8   char a;
9 };
10 
f(struct test * t)11 char f(struct test *t) {
12   return t->a;
13 }
14