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

// Test compare to literal 0

void fun()
{
  if( nullptr == 0 );
  decltype(nullptr) mynull = 0;
  if( mynull == 0 );
}