repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
Wincompatible-pointer-types-1.c
blob
4ae7b1d99ceb5bfa41adc80a704410232a5750e0
1
/* { dg-do compile } */
2
/* { dg-options "-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
}