From 412a0bf58d22b90c3c7b5234bc727a116ee779ef Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 13 Apr 2006 17:26:54 +0000 Subject: [PATCH] Don't get confused by dead casts. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27662 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/C++Frontend/2003-11-09-ConstructorTypeSafety.cpp.tr | 2 +- test/C++Frontend/2003-11-18-MemberInitializationCasting.cpp.tr | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/C++Frontend/2003-11-09-ConstructorTypeSafety.cpp.tr b/test/C++Frontend/2003-11-09-ConstructorTypeSafety.cpp.tr index 0475002c517..3596d68e5d0 100644 --- a/test/C++Frontend/2003-11-09-ConstructorTypeSafety.cpp.tr +++ b/test/C++Frontend/2003-11-09-ConstructorTypeSafety.cpp.tr @@ -1,5 +1,5 @@ // The code generated for this testcase should be completely typesafe! -// RUN: %llvmgcc -xc++ -S -o - %s | not grep ' cast ' +// RUN: %llvmgcc -xc++ -S -o - %s | llvm-as | opt -die | llvm-dis | not grep ' cast ' struct contained { unsigned X; diff --git a/test/C++Frontend/2003-11-18-MemberInitializationCasting.cpp.tr b/test/C++Frontend/2003-11-18-MemberInitializationCasting.cpp.tr index 02b162ce91c..1d607a2ac95 100644 --- a/test/C++Frontend/2003-11-18-MemberInitializationCasting.cpp.tr +++ b/test/C++Frontend/2003-11-18-MemberInitializationCasting.cpp.tr @@ -1,4 +1,4 @@ -// RUN: %llvmgcc -xc++ -S -o - %s | not grep ' cast ' +// RUN: %llvmgcc -xc++ -S -o - %s | llvm-as | opt -die | llvm-dis | not grep ' cast ' struct A { A() : i(0) {} -- 2.34.1