aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/struct.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/struct.c')
-rw-r--r--test/CodeGen/struct.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/CodeGen/struct.c b/test/CodeGen/struct.c
index a52e538a7f..8f9ecd6080 100644
--- a/test/CodeGen/struct.c
+++ b/test/CodeGen/struct.c
@@ -112,3 +112,18 @@ struct _w
_Bool j,k;
} ws;
+
+/* Implicit casts (due to typedefs) */
+typedef struct _a
+{
+ int a;
+} a;
+
+void f11()
+{
+ struct _a a1;
+ a a2;
+
+ a1 = a2;
+ a2 = a1;
+}