projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aec4277
)
Move the test type out of the function and into the anonymous namespace
author
Chandler Carruth
<chandlerc@gmail.com>
Sat, 9 Nov 2013 04:09:50 +0000
(
04:09
+0000)
committer
Chandler Carruth
<chandlerc@gmail.com>
Sat, 9 Nov 2013 04:09:50 +0000
(
04:09
+0000)
to fix C++98 builds.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194316
91177308
-0d34-0410-b5e6-
96231b3b80d8
unittests/ADT/polymorphic_ptr_test.cpp
patch
|
blob
|
history
diff --git
a/unittests/ADT/polymorphic_ptr_test.cpp
b/unittests/ADT/polymorphic_ptr_test.cpp
index e1e9c42fce0cc46506513097d2726b7a4f7a88ce..3606698b35df8922eabe986bd15eda65a1ba9d08 100644
(file)
--- 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);