Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/Test/ConditionTests.cpp
diff options
context:
space:
mode:
authorPhil Nash2011-03-18 19:08:33 +0000
committerPhil Nash2011-03-18 19:08:33 +0000
commit7dfd830a3a273a6b2b23ff66eb96f0c72ff6f991 (patch)
tree0527c5de35615409d7db472801318e97e7ce2109 /Test/ConditionTests.cpp
parentef611c65d9d5e9144e2b4d09e40ff9f2edd656d0 (diff)
downloadcatch3-7dfd830a3a273a6b2b23ff66eb96f0c72ff6f991.tar.gz
Allow { NULL <op> T }to work
Diffstat (limited to 'Test/ConditionTests.cpp')
-rw-r--r--Test/ConditionTests.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/Test/ConditionTests.cpp b/Test/ConditionTests.cpp
index 5a2c5751..96fcb1a7 100644
--- a/Test/ConditionTests.cpp
+++ b/Test/ConditionTests.cpp
@@ -224,7 +224,16 @@ TEST_CASE( "./succeeding/conditions/ptr", "Pointers can be compared to null" )
TestData data;
p = &data;
+
REQUIRE( p != NULL );
+
+ const TestData* cp = p;
+ REQUIRE( cp != NULL );
+
+ const TestData* const cpc = p;
+ REQUIRE( cpc != NULL );
+
+// REQUIRE( NULL != p ); // gives warning, but should compile and run ok
}
// Not (!) tests