[llvm] r194316 - Move the test type out of the function and into the anonymous namespace
Chandler Carruth
chandlerc at gmail.com
Fri Nov 8 20:09:51 PST 2013
Author: chandlerc
Date: Fri Nov 8 22:09:50 2013
New Revision: 194316
URL: http://llvm.org/viewvc/llvm-project?rev=194316&view=rev
Log:
Move the test type out of the function and into the anonymous namespace
to fix C++98 builds.
Modified:
llvm/trunk/unittests/ADT/polymorphic_ptr_test.cpp
Modified: llvm/trunk/unittests/ADT/polymorphic_ptr_test.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/ADT/polymorphic_ptr_test.cpp?rev=194316&r1=194315&r2=194316&view=diff
==============================================================================
--- llvm/trunk/unittests/ADT/polymorphic_ptr_test.cpp (original)
+++ llvm/trunk/unittests/ADT/polymorphic_ptr_test.cpp Fri Nov 8 22:09:50 2013
@@ -15,12 +15,12 @@ using namespace llvm;
namespace {
-TEST(polymorphic_ptr_test, Basic) {
- struct S {
- S(int x) : x(x) {}
- int x;
- };
+struct S {
+ S(int x) : x(x) {}
+ int x;
+};
+TEST(polymorphic_ptr_test, Basic) {
polymorphic_ptr<S> null;
EXPECT_FALSE((bool)null);
EXPECT_TRUE(!null);
More information about the llvm-commits
mailing list