blob: 3a6f35e79d9c6705c4a372d048381006e00244f4 [file] [log] [blame]
/* { dg-do compile } */
/* { dg-options "-std=c90 -pedantic-errors" } */
void *
f1 (int flag, int *a, long *b)
{
return flag ? a : b; /* { dg-error "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 } */
}