Move the test type out of the function and into the anonymous namespace
to fix C++98 builds. llvm-svn: 194316
This commit is contained in:
parent
64b0556071
commit
8f9bd1fa42
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue