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