Skip analyzer strndup test on hppa*-*-hpux*
[official-gcc.git] / gcc / testsuite / gcc.dg / c11-compare-incomplete-1.c
blobb1c05cf221e31c4249d30d6cf9c0e601cec3545e
1 /* Test comparisons of pointers to complete and incomplete types are
2 accepted in C11 mode. */
3 /* { dg-do compile } */
4 /* { dg-options "-std=c11 -pedantic-errors" } */
6 int
7 f (int (*p)[], int (*q)[3])
9 return p < q;
12 int
13 f2 (int (*p)[], int (*q)[3])
15 return p <= q;
18 int
19 f3 (int (*p)[], int (*q)[3])
21 return p > q;
24 int
25 f4 (int (*p)[], int (*q)[3])
27 return p >= q;
30 int
31 g (int (*p)[], int (*q)[3])
33 return q < p;
36 int
37 g2 (int (*p)[], int (*q)[3])
39 return q <= p;
42 int
43 g3 (int (*p)[], int (*q)[3])
45 return q > p;
48 int
49 g4 (int (*p)[], int (*q)[3])
51 return q >= p;