summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/exprs.c
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-04-25 19:35:26 +0000
committerChris Lattner <sabre@nondot.org>2009-04-25 19:35:26 +0000
commita4185c543e1fe8a9e4b776f41717dc834f84559d (patch)
tree36644d1d356ef7bbf1f231270e7d635ae043445e /clang/test/CodeGen/exprs.c
parentb3e5f7a7ff8703c547d9d36dac309a0424e1a041 (diff)
downloadbcm5719-llvm-a4185c543e1fe8a9e4b776f41717dc834f84559d.tar.gz
bcm5719-llvm-a4185c543e1fe8a9e4b776f41717dc834f84559d.zip
fix PR4067: [Linux kernel] cannot aggregate codegen stmtexpr as lvalue
llvm-svn: 70067
Diffstat (limited to 'clang/test/CodeGen/exprs.c')
-rw-r--r--clang/test/CodeGen/exprs.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/test/CodeGen/exprs.c b/clang/test/CodeGen/exprs.c
index f80ee419580..ad3e4e09568 100644
--- a/clang/test/CodeGen/exprs.c
+++ b/clang/test/CodeGen/exprs.c
@@ -99,3 +99,8 @@ int f6(int a0, struct s6 a1, struct s6 a2) {
void f7() {
__func__;
}
+
+// PR4067
+int f8() {
+ return ({ foo(); }).Y;
+}
OpenPOWER on IntegriCloud