summaryrefslogtreecommitdiff
path: root/unittests
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2013-11-09 04:09:50 +0000
committerChandler Carruth <chandlerc@gmail.com>2013-11-09 04:09:50 +0000
commitcd7a191d8aaf4869b0c53ddb04acba924424f2c8 (patch)
tree3952ef2f8984965bfb357b076ddb6f80f002d726 /unittests
parentaec427786be4f4dd0c8ecc0aa17899e6c836e45d (diff)
downloadllvm-cd7a191d8aaf4869b0c53ddb04acba924424f2c8.tar.gz
llvm-cd7a191d8aaf4869b0c53ddb04acba924424f2c8.tar.bz2
llvm-cd7a191d8aaf4869b0c53ddb04acba924424f2c8.tar.xz
Move the test type out of the function and into the anonymous namespace
to fix C++98 builds. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194316 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests')
-rw-r--r--unittests/ADT/polymorphic_ptr_test.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/unittests/ADT/polymorphic_ptr_test.cpp b/unittests/ADT/polymorphic_ptr_test.cpp
index e1e9c42fce..3606698b35 100644
--- a/unittests/ADT/polymorphic_ptr_test.cpp
+++ b/unittests/ADT/polymorphic_ptr_test.cpp
@@ -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);