aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/func-return-member.c
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-11-20 17:23:39 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-11-20 17:23:39 +0000
commit600d47e8d5edc93a08ada8086db23d1d434ce583 (patch)
tree2ce7069156fbc21fd527faa4937cccfb98afe04c /test/CodeGen/func-return-member.c
parent50a4487683a7e09fb93e8b506181e034241a0ffe (diff)
Fix some codegen tests to include positive checks.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89465 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/func-return-member.c')
-rw-r--r--test/CodeGen/func-return-member.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/CodeGen/func-return-member.c b/test/CodeGen/func-return-member.c
index e6fc562390..68a48fc104 100644
--- a/test/CodeGen/func-return-member.c
+++ b/test/CodeGen/func-return-member.c
@@ -1,4 +1,4 @@
-// RUN: clang-cc -emit-llvm < %s 2>&1 | not grep 'cannot codegen this l-value expression yet'
+// RUN: clang-cc -emit-llvm -o - %s | FileCheck %s
struct frk { float _Complex c; int x; };
struct faz { struct frk f; };
@@ -10,14 +10,17 @@ int X;
struct frk F;
float _Complex C;
+// CHECK: define void @bar
void bar(void) {
X = foo().f.f.x;
}
+// CHECK: define void @bun
void bun(void) {
F = foo().f.f;
}
+// CHECK: define void @ban
void ban(void) {
C = foo().f.f.c;
}