blob: a9377584c56a2b3916b9e21cee919221056e0276 [file] [log] [blame]
// { dg-do compile }
// { dg-options "-std=c++0x" }
// Test typeid
#include <typeinfo>
#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));
}