summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/exprs.c
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-05-12 21:28:12 +0000
committerChris Lattner <sabre@nondot.org>2009-05-12 21:28:12 +0000
commite541ea3a61a3331e39d5a90387472126453293bd (patch)
tree991f664197a31a26086557a6aa7813514c683a08 /clang/test/CodeGen/exprs.c
parente0be0dfcedb709915ec3832ca1b89ecb4c67ba41 (diff)
downloadbcm5719-llvm-e541ea3a61a3331e39d5a90387472126453293bd.tar.gz
bcm5719-llvm-e541ea3a61a3331e39d5a90387472126453293bd.zip
implement l-value codegen of comma expr
llvm-svn: 71595
Diffstat (limited to 'clang/test/CodeGen/exprs.c')
-rw-r--r--clang/test/CodeGen/exprs.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/clang/test/CodeGen/exprs.c b/clang/test/CodeGen/exprs.c
index ad3e4e09568..36cfff9e8a6 100644
--- a/clang/test/CodeGen/exprs.c
+++ b/clang/test/CodeGen/exprs.c
@@ -104,3 +104,15 @@ void f7() {
int f8() {
return ({ foo(); }).Y;
}
+
+// rdar://6880558
+struct S;
+struct C {
+ int i;
+ struct S *tab[];
+};
+struct S { struct C c; };
+void f9(struct S *x) {
+ foo(((void)1, x->c).tab[0]);
+}
+
OpenPOWER on IntegriCloud