Allow { NULL <op> T }to work

This commit is contained in:
Phil Nash committed 2011-03-18 19:08:33 +00:00
1 parent ef611c65d9
commit 7dfd830a3a
3 files changed
+80 -57

No files matched your search

+9
View File
@@ -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