mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
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
This commit is contained in:
parent
aec427786b
commit
cd7a191d8a
@ -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
Block a user