summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/exprs.c
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-03-18 18:30:44 +0000
committerChris Lattner <sabre@nondot.org>2009-03-18 18:30:44 +0000
commitab17fb2c985539582ac17540c8db09e138380495 (patch)
treeb9ff35bed5839a7b3f64082f56ddb3be2d304f84 /clang/test/CodeGen/exprs.c
parent28bcf1a4298e581fd003b5361cbd1de25fbe44f5 (diff)
downloadbcm5719-llvm-ab17fb2c985539582ac17540c8db09e138380495.tar.gz
bcm5719-llvm-ab17fb2c985539582ac17540c8db09e138380495.zip
fix the more complex cases by actually codegen'ing the right expr :)
llvm-svn: 67219
Diffstat (limited to 'clang/test/CodeGen/exprs.c')
-rw-r--r--clang/test/CodeGen/exprs.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/CodeGen/exprs.c b/clang/test/CodeGen/exprs.c
index a0fe9600895..dbc14997d4e 100644
--- a/clang/test/CodeGen/exprs.c
+++ b/clang/test/CodeGen/exprs.c
@@ -82,3 +82,9 @@ unsigned f1(void) {
union f3_x {int x; float y;};
int f3() {return ((union f3_x)2).x;}
+union f4_y {int x; _Complex float y;};
+_Complex float f4() {return ((union f4_y)(_Complex float)2.0).y;}
+
+struct f5_a { int a; } f5_a;
+union f5_z {int x; struct f5_a y;};
+struct f5_a f5() {return ((union f5_z)f5_a).y;}
OpenPOWER on IntegriCloud