summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/warn/pr5310.C
blob: 48a60062f1bf807b06d0f77c2755689cf33fe6b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
// PR 5310
// { dg-do compile }
// { dg-options "-pedantic -Wall -Wextra -Wpointer-arith -Wconversion" } 
void foo (int);
void foo (long);

void bar()
{
   foo ((int)__null);
   foo ((long)__null);
}