summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/nullptr09.C
blob: b35a3c3207d1f311c09e8a01435b3fc0e817e5d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
// { dg-do compile }
// { dg-options "-std=c++0x" }

// Test compare to literal 0

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