diff options
Diffstat (limited to 'clang/test/CodeGenCXX/derived-to-base.cpp')
-rw-r--r-- | clang/test/CodeGenCXX/derived-to-base.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/clang/test/CodeGenCXX/derived-to-base.cpp b/clang/test/CodeGenCXX/derived-to-base.cpp index 79aeea70e3e..e44fdc5ed2d 100644 --- a/clang/test/CodeGenCXX/derived-to-base.cpp +++ b/clang/test/CodeGenCXX/derived-to-base.cpp @@ -21,3 +21,16 @@ B *f(A *a) { // CHECK: ret %struct.B* return static_cast<B*>(a); } + +// PR5965 +namespace PR5965 { + +// CHECK: define %struct.A* @_ZN6PR59651fEP1B(%struct.B* %b) nounwind +A *f(B* b) { + // CHECK-NOT: br label + // CHECK: ret %struct.A* + return b; +} + +} + |