aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/Wincompatible-pointer-types-1.c
blob: 4ae7b1d99ceb5bfa41adc80a704410232a5750e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* { dg-do compile } */
/* { dg-options "-pedantic-errors" } */

void f (int, ...);

int
f1 (void)
{
  int (*x) ();
  x = f; /* { dg-error "assignment to 'int \\(\\*\\)\\(\\)' from incompatible pointer type 'void \\(\\*\\)\\(int, \.\.\.\\)'" } */
  return x (1);
}