forked from OSchip/llvm-project
Tweak test so that it does not require <typeinfo>
llvm-svn: 103819
This commit is contained in:
parent
0e675818f1
commit
2d15ecad39
|
@ -1,5 +1,4 @@
|
||||||
// RUN: %clang_cc1 %s -triple x86_64-apple-darwin10 -emit-llvm -fexceptions -o - | FileCheck %s
|
// RUN: %clang_cc1 -I%S %s -triple x86_64-apple-darwin10 -emit-llvm -fexceptions -o - | FileCheck %s
|
||||||
#include <typeinfo>
|
|
||||||
struct A { virtual void f(); };
|
struct A { virtual void f(); };
|
||||||
struct B : A { };
|
struct B : A { };
|
||||||
|
|
||||||
|
@ -11,10 +10,8 @@ const B& f(A *a) {
|
||||||
// CHECK: br i1
|
// CHECK: br i1
|
||||||
// CHECK: invoke void @__cxa_bad_cast() noreturn
|
// CHECK: invoke void @__cxa_bad_cast() noreturn
|
||||||
dynamic_cast<const B&>(*a);
|
dynamic_cast<const B&>(*a);
|
||||||
} catch (std::bad_cast&) {
|
} catch (...) {
|
||||||
// CHECK: call i8* @llvm.eh.exception
|
// CHECK: call i8* @llvm.eh.exception
|
||||||
// CHECK: {{call.*llvm.eh.selector.*_ZTISt8bad_cast}}
|
|
||||||
// CHECK: {{call i32 @llvm.eh.typeid.for.*@_ZTISt8bad_cast}}
|
|
||||||
}
|
}
|
||||||
return fail;
|
return fail;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue