aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/typedef.c
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-11-30 18:02:19 +0000
committerChris Lattner <sabre@nondot.org>2007-11-30 18:02:19 +0000
commit3e47be5c90b2bf04369239ba618336c96e299a4c (patch)
tree16c474e1e1da6a1fa449d72aa3df1377f46c8f97 /test/CodeGen/typedef.c
parent2202bce80fc72d067cbe67dc1512f7b45351fd31 (diff)
fix a bug handling typedefs in member expr codegen. Patch
by Seo Sanghyeon git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44455 91177308-0d34-0410-b5e6-96231b3b80d8
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 0000000000..291f0c89db
--- /dev/null
+++ b/test/CodeGen/typedef.c
@@ -0,0 +1,8 @@
+// RUN: clang -emit-llvm %s
+
+typedef struct { int i; } Value;
+typedef Value *PValue;
+
+int get_value(PValue v) {
+ return v->i;
+}