Add support for C++0x nullptr.
[official-gcc/constexpr.git] / gcc / testsuite / g++.dg / cpp0x / nullptr08.C
blobd7d9169f5a142cc3be8185cdc209c49192cf9f54
1 // { dg-do compile }
2 // { dg-options "-std=c++0x" }
4 // Test conversion to bool
6 #define assert_true(b) do { char c[2 * bool(b) - 1]; } while(0)
8 void fun()
10   assert_true(nullptr ? false : true);