summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/typedef.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/typedef.c')
-rw-r--r--test/CodeGen/typedef.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGen/typedef.c b/test/CodeGen/typedef.c
new file mode 100644
index 0000000..3bdd52f
--- /dev/null
+++ b/test/CodeGen/typedef.c
@@ -0,0 +1,8 @@
+// RUN: clang-cc -emit-llvm %s -o -
+
+typedef struct { int i; } Value;
+typedef Value *PValue;
+
+int get_value(PValue v) {
+ return v->i;
+}
OpenPOWER on IntegriCloud