summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/struct.c
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2008-01-14 06:28:57 +0000
committerAnders Carlsson <andersca@mac.com>2008-01-14 06:28:57 +0000
commit1ba25ca17146bf036564bee3275c69e5e4b964b6 (patch)
tree13e20c19a77824a415e39e1b829c1e07a0bfcb39 /clang/test/CodeGen/struct.c
parentf14ba63620eb45ec652f0d48ead27f1cf904b563 (diff)
downloadbcm5719-llvm-1ba25ca17146bf036564bee3275c69e5e4b964b6.tar.gz
bcm5719-llvm-1ba25ca17146bf036564bee3275c69e5e4b964b6.zip
Add codegen upport for implicit casts to aggregate exprs.
llvm-svn: 45954
Diffstat (limited to 'clang/test/CodeGen/struct.c')
-rw-r--r--clang/test/CodeGen/struct.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/clang/test/CodeGen/struct.c b/clang/test/CodeGen/struct.c
index a52e538a7f6..8f9ecd6080a 100644
--- a/clang/test/CodeGen/struct.c
+++ b/clang/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;
+}
OpenPOWER on IntegriCloud