// { dg-do compile } // { dg-options "-std=c++0x" } // Test typeid #include #define assert_true(b) do { char c[2 * bool(b) - 1]; } while(0) void fun() { typeid(nullptr); const decltype(nullptr) mynull = 0; typeid(mynull); assert_true(typeid(nullptr) == typeid(mynull)); }