From b7bc66acc511c85a22eb608957714c80c3428116 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Sat, 26 Oct 2013 20:55:05 +0000 Subject: [PATCH] Check IR and don't use temporary files. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@193484 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGenCXX/copy-assign-synthesis-1.cpp | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/test/CodeGenCXX/copy-assign-synthesis-1.cpp b/test/CodeGenCXX/copy-assign-synthesis-1.cpp index 6f99163383..2ffc7bcb7c 100644 --- a/test/CodeGenCXX/copy-assign-synthesis-1.cpp +++ b/test/CodeGenCXX/copy-assign-synthesis-1.cpp @@ -1,8 +1,8 @@ // REQUIRES: x86-registered-target,x86-64-registered-target -// RUN: %clang_cc1 -triple x86_64-apple-darwin -std=c++11 -S %s -o %t-64.s -// RUN: FileCheck -check-prefix CHECK-LP64 --input-file=%t-64.s %s -// RUN: %clang_cc1 -triple i386-apple-darwin -std=c++11 -S %s -o %t-32.s -// RUN: FileCheck -check-prefix CHECK-LP32 --input-file=%t-32.s %s +// RUN: %clang_cc1 -triple x86_64-apple-darwin -std=c++11 -emit-llvm %s -o - | \ +// RUN: FileCheck %s +// RUN: %clang_cc1 -triple i386-apple-darwin -std=c++11 -emit-llvm %s -o - | \ +// RUN: FileCheck %s extern "C" int printf(...); @@ -93,11 +93,5 @@ int main() { dstY.pr(); } -// CHECK-LP64: .globl __ZN1XaSERKS_ -// CHECK-LP64: .weak_definition __ZN1XaSERKS_ -// CHECK-LP64: __ZN1XaSERKS_: - -// CHECK-LP32: .globl __ZN1XaSERKS_ -// CHECK-LP32: .weak_definition __ZN1XaSERKS_ -// CHECK-LP32: __ZN1XaSERKS_: +// CHECK: define linkonce_odr %struct.X* @_ZN1XaSERKS_ -- 2.40.0