diff options
Diffstat (limited to 'test/CodeGenCXX/dynamic-cast.cpp')
-rw-r--r-- | test/CodeGenCXX/dynamic-cast.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/CodeGenCXX/dynamic-cast.cpp b/test/CodeGenCXX/dynamic-cast.cpp index 813e36e..fe85e21 100644 --- a/test/CodeGenCXX/dynamic-cast.cpp +++ b/test/CodeGenCXX/dynamic-cast.cpp @@ -8,7 +8,7 @@ const B& f(A *a) { try { // CHECK: call i8* @__dynamic_cast // CHECK: br i1 - // CHECK: invoke void @__cxa_bad_cast() noreturn + // CHECK: invoke void @__cxa_bad_cast() [[NR:#[0-9]+]] dynamic_cast<const B&>(*a); } catch (...) { // CHECK: landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*) @@ -16,3 +16,8 @@ const B& f(A *a) { } return fail; } + +// CHECK: declare i8* @__dynamic_cast(i8*, i8*, i8*, i64) [[NUW_RO:#[0-9]+]] + +// CHECK: attributes [[NUW_RO]] = { nounwind readonly } +// CHECK: attributes [[NR]] = { noreturn } |