Skip analyzer strndup test on hppa*-*-hpux*
[official-gcc.git] / gcc / testsuite / gcc.dg / Wincompatible-pointer-types-2.c
blob19276bbcfba1f7b56b4ed06692277c0e2fee755d
1 /* { dg-do compile } */
2 /* { dg-options "" } */
4 void *
5 f1 (int flag, int *a, long *b)
7 return flag ? a : b; /* { dg-warning "pointer type mismatch in conditional expression \\\[-Wincompatible-pointer-types\\\]" } */
8 /* { dg-note "first expression has type 'int \\*'" "" { target *-*-* } .-1 } */
9 /* { dg-note "second expression has type 'long int \\*'" "" { target *-*-* } .-2 } */