llvm-project/clang/test/CodeGen/opaque-pointer.c

14 lines
177 B
C

// RUN: clang %s -emit-llvm -o %t
struct test;
typedef void (*my_func) (struct test *);
my_func handler;
struct test {
char a;
};
char f(struct test *t) {
return t->a;
}