Debian Codegraph @

gcc/testsuite/gcc.dg/Wincompatible-pointer-types-1.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-std=gnu17 -pedantic-errors" } */
3
4 void f (int, ...);
5
6 int
7 f1 (void)
8 {
9 int (*x) ();
10 x = f; /* { dg-error "assignment to 'int \\(\\*\\)\\(\\)' from incompatible pointer type 'void \\(\\*\\)\\(int, \.\.\.\\)'" } */
11 return x (1);
12 }