[libcxxabi] r271423 - [libcxxabi][test] Add missing return statement.
Asiri Rathnayake via cfe-commits
cfe-commits at lists.llvm.org
Wed Jun 1 12:13:53 PDT 2016
Author: asiri
Date: Wed Jun 1 14:13:53 2016
New Revision: 271423
URL: http://llvm.org/viewvc/llvm-project?rev=271423&view=rev
Log:
[libcxxabi][test] Add missing return statement.
This causes a test failure when running with -Werror=return-type.
NFC.
Modified:
libcxxabi/trunk/test/cxa_bad_typeid.pass.cpp
Modified: libcxxabi/trunk/test/cxa_bad_typeid.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxxabi/trunk/test/cxa_bad_typeid.pass.cpp?rev=271423&r1=271422&r2=271423&view=diff
==============================================================================
--- libcxxabi/trunk/test/cxa_bad_typeid.pass.cpp (original)
+++ libcxxabi/trunk/test/cxa_bad_typeid.pass.cpp Wed Jun 1 14:13:53 2016
@@ -24,7 +24,7 @@ class Base {
class Derived : public Base {};
std::string test_bad_typeid(Derived *p) {
- typeid(*p).name();
+ return typeid(*p).name();
}
void my_terminate() { std::cout << "A" << std::endl; exit(0); }
More information about the cfe-commits
mailing list