From: NAKAMURA Takumi Date: Tue, 22 Jan 2013 01:51:48 +0000 (+0000) Subject: clang/test/CodeGen/blocks-seq.c: FileCheck-ize. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9627bb6e00321a079a6cce887bc85f5e4e50baa5;p=clang clang/test/CodeGen/blocks-seq.c: FileCheck-ize. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@173113 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGen/blocks-seq.c b/test/CodeGen/blocks-seq.c index 3557b48053..8db9e606b1 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();