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