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