Add evaluation specialization for T* and long

Fixes #1005
This commit is contained in:
Martin Hořeňovský
2017-08-30 12:11:41 +02:00
parent 07211cea9c
commit 61d2c375dd
7 changed files with 82 additions and 9 deletions
+7
View File
@@ -7,6 +7,7 @@
*/
#include <iostream>
#include <cstdio>
struct truthy {
truthy(bool b):m_value(b){}
@@ -26,3 +27,9 @@ std::ostream& operator<<(std::ostream& o, truthy) {
TEST_CASE( "Reconstruction should be based on stringification: #914" , "[Decomposition][failing][.]") {
CHECK(truthy(false));
}
TEST_CASE("#1005: Comparing pointer to int and long (NULL can be either on various systems)", "[Decomposition]") {
FILE* fptr = nullptr;
REQUIRE(fptr == 0);
REQUIRE(fptr == 0l);
}