diff options
| author | Phil Nash | 2011-03-18 19:08:33 +0000 |
|---|---|---|
| committer | Phil Nash | 2011-03-18 19:08:33 +0000 |
| commit | 7dfd830a3a273a6b2b23ff66eb96f0c72ff6f991 (patch) | |
| tree | 0527c5de35615409d7db472801318e97e7ce2109 /Test/ConditionTests.cpp | |
| parent | ef611c65d9d5e9144e2b4d09e40ff9f2edd656d0 (diff) | |
| download | catch3-7dfd830a3a273a6b2b23ff66eb96f0c72ff6f991.tar.gz | |
Allow { NULL <op> T }to work
Diffstat (limited to 'Test/ConditionTests.cpp')
| -rw-r--r-- | Test/ConditionTests.cpp | 9 |
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 |