Move the test type out of the function and into the anonymous namespace
[oota-llvm.git] / unittests / ADT / polymorphic_ptr_test.cpp
index e1e9c42fce0cc46506513097d2726b7a4f7a88ce..3606698b35df8922eabe986bd15eda65a1ba9d08 100644 (file)
@@ -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);