aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/nullptr13.C
blob: e788c16b12067cd23d970e6b0690429daa399c7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// { dg-do run { target c++11 } }

// Test typeid

#include <typeinfo>

int main()
{
  const decltype(nullptr) mynull = 0;
  if (typeid(nullptr) != typeid(mynull))
    __builtin_abort();
}