opnsense-src/test/CodeGen/opaque-pointer.c

14 lines
181 B
C
Raw Normal View History

2010-01-01 05:34:51 -05:00
// RUN: %clang_cc1 %s -emit-llvm -o -
2009-06-02 13:58:47 -04:00
struct test;
typedef void (*my_func) (struct test *);
my_func handler;
struct test {
char a;
};
char f(struct test *t) {
return t->a;
}