diff options
author | Lauro Ramos Venancio <lauro.venancio@gmail.com> | 2008-01-30 21:21:08 +0000 |
---|---|---|
committer | Lauro Ramos Venancio <lauro.venancio@gmail.com> | 2008-01-30 21:21:08 +0000 |
commit | 8df106e16197bf4bc055a9a9d73f4b78351c0c3e (patch) | |
tree | c9c797bfb0080799390a79c356c7dde47eba5d91 /test/CodeGen/opaque-pointer.c | |
parent | 9d49395a5b94fb6a981739b01366ae37a2753d89 (diff) |
A pointer to an opaque type is an "opaque type definition".
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@46575 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/opaque-pointer.c')
-rw-r--r-- | test/CodeGen/opaque-pointer.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/CodeGen/opaque-pointer.c b/test/CodeGen/opaque-pointer.c new file mode 100644 index 0000000000..33706aa9d8 --- /dev/null +++ b/test/CodeGen/opaque-pointer.c @@ -0,0 +1,13 @@ +// RUN: clang %s -emit-llvm +struct test; + +typedef void (*my_func) (struct test *); +my_func handler; + +struct test { + char a; +}; + +char f(struct test *t) { + return t->a; +} |