summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/2008-08-19-cast-of-typedef.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/2008-08-19-cast-of-typedef.c')
-rw-r--r--test/CodeGen/2008-08-19-cast-of-typedef.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGen/2008-08-19-cast-of-typedef.c b/test/CodeGen/2008-08-19-cast-of-typedef.c
new file mode 100644
index 0000000..3db5e90
--- /dev/null
+++ b/test/CodeGen/2008-08-19-cast-of-typedef.c
@@ -0,0 +1,10 @@
+// RUN: clang-cc --emit-llvm -o %t %s
+
+typedef short T[4];
+struct s {
+ T f0;
+};
+
+void foo(struct s *x) {
+ bar((long) x->f0);
+}
OpenPOWER on IntegriCloud