1 // { dg-do compile { target c++11 } }
3 // Test compare to pointer
5 #define assert_true(b) do { char c[2 * bool(b) - 1]; } while(0)
7 constexpr char* cp1 = nullptr;
11 assert_true(cp1 == nullptr);
12 decltype(nullptr) mynull = 0;
13 assert_true(cp1 == mynull);