[cfe-commits] r103819 - /cfe/trunk/test/CodeGenCXX/dynamic-cast.cpp
Douglas Gregor
dgregor at apple.com
Fri May 14 14:50:50 PDT 2010
Author: dgregor
Date: Fri May 14 16:50:50 2010
New Revision: 103819
URL: http://llvm.org/viewvc/llvm-project?rev=103819&view=rev
Log:
Tweak test so that it does not require <typeinfo>
Modified:
cfe/trunk/test/CodeGenCXX/dynamic-cast.cpp
Modified: cfe/trunk/test/CodeGenCXX/dynamic-cast.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/dynamic-cast.cpp?rev=103819&r1=103818&r2=103819&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenCXX/dynamic-cast.cpp (original)
+++ cfe/trunk/test/CodeGenCXX/dynamic-cast.cpp Fri May 14 16:50:50 2010
@@ -1,5 +1,4 @@
-// RUN: %clang_cc1 %s -triple x86_64-apple-darwin10 -emit-llvm -fexceptions -o - | FileCheck %s
-#include <typeinfo>
+// RUN: %clang_cc1 -I%S %s -triple x86_64-apple-darwin10 -emit-llvm -fexceptions -o - | FileCheck %s
struct A { virtual void f(); };
struct B : A { };
@@ -11,10 +10,8 @@
// CHECK: br i1
// CHECK: invoke void @__cxa_bad_cast() noreturn
dynamic_cast<const B&>(*a);
- } catch (std::bad_cast&) {
+ } catch (...) {
// CHECK: call i8* @llvm.eh.exception
- // CHECK: {{call.*llvm.eh.selector.*_ZTISt8bad_cast}}
- // CHECK: {{call i32 @llvm.eh.typeid.for.*@_ZTISt8bad_cast}}
}
return fail;
}
More information about the cfe-commits
mailing list