Merge from mainline (160224:163495).
[official-gcc/graphite-test-results.git] / gcc / testsuite / g++.dg / cpp0x / nullptr09.C
blobb35a3c3207d1f311c09e8a01435b3fc0e817e5d1
1 // { dg-do compile }
2 // { dg-options "-std=c++0x" }
4 // Test compare to literal 0
6 void fun()
8   if( nullptr == 0 );
9   decltype(nullptr) mynull = 0;
10   if( mynull == 0 );