blob: bbf983c1536fe59d09f86b096767d836ead19526 [file] [log] [blame]
/* { dg-do compile } */
/* { dg-options "-fpermissive" } */
void *
f1 (int flag, int *a, long *b)
{
return flag ? a : b; /* { dg-warning "pointer type mismatch in conditional expression \\\[-Wincompatible-pointer-types\\\]" } */
/* { dg-note "first expression has type 'int \\*'" "" { target *-*-* } .-1 } */
/* { dg-note "second expression has type 'long int \\*'" "" { target *-*-* } .-2 } */
}