Add support for C++0x nullptr.
[official-gcc/constexpr.git] / gcc / testsuite / g++.dg / cpp0x / nullptr06.C
blob5dea1fbf171eef4b9fe77811dc5b0e54d6d97c4c
1 // { dg-do compile }
2 // { dg-options "-std=c++0x" }
4 // Test compare to pointer
6 #define assert_true(b) do { char c[2 * bool(b) - 1]; } while(0)
8 char* const cp1 = nullptr;
10 void fun()
12   assert_true(cp1 == nullptr);