diff options
author | dim <dim@FreeBSD.org> | 2013-04-08 18:45:10 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2013-04-08 18:45:10 +0000 |
commit | c72c57c9e9b69944e3e009cd5e209634839581d3 (patch) | |
tree | 4fc2f184c499d106f29a386c452b49e5197bf63d /test/CodeGenCXX/dynamic-cast-always-null.cpp | |
parent | 5b20025c30d23d521e12c1f33ec8fa6b821952cd (diff) | |
download | FreeBSD-src-c72c57c9e9b69944e3e009cd5e209634839581d3.zip FreeBSD-src-c72c57c9e9b69944e3e009cd5e209634839581d3.tar.gz |
Vendor import of clang trunk r178860:
http://llvm.org/svn/llvm-project/cfe/trunk@178860
Diffstat (limited to 'test/CodeGenCXX/dynamic-cast-always-null.cpp')
-rw-r--r-- | test/CodeGenCXX/dynamic-cast-always-null.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/CodeGenCXX/dynamic-cast-always-null.cpp b/test/CodeGenCXX/dynamic-cast-always-null.cpp index 836cb11..db4346f 100644 --- a/test/CodeGenCXX/dynamic-cast-always-null.cpp +++ b/test/CodeGenCXX/dynamic-cast-always-null.cpp @@ -13,7 +13,7 @@ C *f(B* b) { // CHECK: @_Z1fR1B C &f(B& b) { // CHECK-NOT: call i8* @__dynamic_cast - // CHECK: call void @__cxa_bad_cast() noreturn + // CHECK: call void @__cxa_bad_cast() [[NR:#[0-9]+]] // CHECK: ret %struct.C* undef return dynamic_cast<C&>(b); } @@ -22,3 +22,5 @@ void dont_crash() { (void) dynamic_cast<void*>((A*)0); (void) dynamic_cast<void*>((B*)0); } + +// CHECK: attributes [[NR]] = { noreturn } |