builtin-has-attribute-4.c: Skip on 32-bit hppa*-*-hpux*.
[official-gcc.git] / gcc / testsuite / gcc.dg / pr56724-1.c
blob4276c3f154beb7d6fdfef14b2490b01c65fe17e3
1 /* PR c/56724 */
2 /* { dg-do compile } */
3 /* { dg-options "-Wtraditional-conversion" } */
5 extern void foo (int p[2][]); /* { dg-error "array type has incomplete element type" } */
6 extern void foo_i (int, int);
7 extern void foo_u (unsigned int);
8 extern void foo_f (int, float);
9 extern void foo_ll (long long);
10 extern void foo_cd (int, int, __complex__ double);
11 extern signed char sc;
12 extern int i;
13 extern unsigned int u;
14 extern float f;
15 extern double d;
16 extern __complex__ double cd;
18 void
19 fn ()
21 int p[1][1];
22 foo (p); /* { dg-error "8:type of formal parameter" } */
23 foo_i (1, f); /* { dg-warning "13:passing argument" } */
24 foo_i (1, cd); /* { dg-warning "13:passing argument" } */
25 foo_cd (1, 2, f); /* { dg-warning "17:passing argument" } */
26 foo_f (9, i); /* { dg-warning "13:passing argument" } */
27 foo_cd (2, 2, i); /* { dg-warning "17:passing argument" } */
28 foo_f (2, cd); /* { dg-warning "13:passing argument" } */
29 foo_f (2, d); /* { dg-warning "13:passing argument" } */
30 foo_ll (sc); /* { dg-warning "11:passing argument" } */
31 foo_u (i); /* { dg-warning "10:passing argument" } */
32 foo_i (1, u); /* { dg-warning "13:passing argument" } */