* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / nullptr07.C
blobb2ef5151975f76409b7d63b6465e43468c5f24df
1 // { dg-do compile { target c++11 } }
3 // Test compare to int
5 void fun()
7   int n = 0;
8   if( n == nullptr ); // { dg-error "invalid operands of types " }
9   const int m = 1;
10   if( m == nullptr ); // { dg-error "invalid operands of types " }
11   decltype(nullptr) mynull = 0;
12   if( n == mynull ); // { dg-error "invalid operands of types " }
13   if( m == mynull ); // { dg-error "invalid operands of types " }