diff options
Diffstat (limited to 'clang/test/CodeGen/OpaqueStruct.c')
-rw-r--r-- | clang/test/CodeGen/OpaqueStruct.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/clang/test/CodeGen/OpaqueStruct.c b/clang/test/CodeGen/OpaqueStruct.c new file mode 100644 index 0000000..fe96126 --- /dev/null +++ b/clang/test/CodeGen/OpaqueStruct.c @@ -0,0 +1,12 @@ +// RUN: %clang_cc1 %s -emit-llvm -o %t +typedef struct a b; + +b* x; + +struct a { + b* p; +}; + +void f() { + b* z = x->p; +} |