diff options
author | dim <dim@FreeBSD.org> | 2013-04-08 18:45:10 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2013-04-08 18:45:10 +0000 |
commit | c72c57c9e9b69944e3e009cd5e209634839581d3 (patch) | |
tree | 4fc2f184c499d106f29a386c452b49e5197bf63d /test/CodeGen/blocks-seq.c | |
parent | 5b20025c30d23d521e12c1f33ec8fa6b821952cd (diff) | |
download | FreeBSD-src-c72c57c9e9b69944e3e009cd5e209634839581d3.zip FreeBSD-src-c72c57c9e9b69944e3e009cd5e209634839581d3.tar.gz |
Vendor import of clang trunk r178860:
http://llvm.org/svn/llvm-project/cfe/trunk@178860
Diffstat (limited to 'test/CodeGen/blocks-seq.c')
-rw-r--r-- | test/CodeGen/blocks-seq.c | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/test/CodeGen/blocks-seq.c b/test/CodeGen/blocks-seq.c index 3557b48..8db9e60 100644 --- a/test/CodeGen/blocks-seq.c +++ b/test/CodeGen/blocks-seq.c @@ -1,13 +1,11 @@ -// FIXME: We forcibly strip the names so that the test doesn't vary between -// builds with and without asserts. We need a better solution for this. - -// RUN: %clang_cc1 -fblocks -triple x86_64-apple-darwin10 -emit-llvm-bc -o - %s | opt -strip | llvm-dis > %t -// RUN: grep '%6 = call i32 (...)\* @rhs()' %t | count 1 -// RUN: grep '%7 = getelementptr inbounds %0\* %1, i32 0, i32 1' %t | count 1 -// RUN: grep '%8 = load %0\*\* %7' %t | count 1 -// RUN: grep '%10 = call i32 (...)\* @rhs()' %t | count 1 -// RUN: grep '%11 = getelementptr inbounds %0\* %1, i32 0, i32 1' %t | count 1 -// RUN: grep '%12 = load %0\*\* %11' %t | count 1 +// RUN: %clang_cc1 -fblocks -triple x86_64-apple-darwin10 -emit-llvm -o - %s | FileCheck %s +// CHECK: [[Vi:%.+]] = alloca %struct.__block_byref_i, align 8 +// CHECK: call i32 (...)* @rhs() +// CHECK: [[V7:%.+]] = getelementptr inbounds %struct.__block_byref_i* [[Vi]], i32 0, i32 1 +// CHECK: load %struct.__block_byref_i** [[V7]] +// CHECK: call i32 (...)* @rhs() +// CHECK: [[V11:%.+]] = getelementptr inbounds %struct.__block_byref_i* [[Vi]], i32 0, i32 1 +// CHECK: load %struct.__block_byref_i** [[V11]] int rhs(); |