commit | 3c40085b373d8e6e4523812e06f73a0cb9d5142c | [log] [tgz] |
---|---|---|
author | Devang Patel <dpatel@apple.com> | Fri Dec 21 19:35:28 2007 +0000 |
committer | Devang Patel <dpatel@apple.com> | Fri Dec 21 19:35:28 2007 +0000 |
tree | cd00c4710fa34e6f4d3b14a2e834a12722998090 | |
parent | dd6ecdb68b511cf672413f0f1bec027742de90f9 [diff] [blame] |
Convert opaque type when struct definition is seen. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45287 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/CodeGen/OpaqueStruct.c b/test/CodeGen/OpaqueStruct.c new file mode 100644 index 0000000..ecf81fa --- /dev/null +++ b/test/CodeGen/OpaqueStruct.c
@@ -0,0 +1,12 @@ +// RUN: clang %s -emit-llvm +typedef struct a b; + +b* x; + +struct a { + b* p; +}; + +void f() { + b* z = x->p; +}