summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/Wpointer-sign-pedantic.c
blob: 25e25209e524d98220ae5a9f1e03ee434ddf1aa9 (plain)
1
2
3
4
5
6
7
8
9
/* This is from PR c/25892.  See Wpointer-sign.c for more details.  */

/* { dg-options "-pedantic" } */

void foo(unsigned long* ulp);

void bar(long* lp) {
  foo(lp); /* { dg-warning "differ in signedness" } */
}