repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
No empty .Rs/.Re
[netbsd-mini2440.git]
/
gnu
/
dist
/
gcc4
/
gcc
/
testsuite
/
gcc.dg
/
noncompile
/
930714-1.c
blob
bdbc13394b3cd0671ba6acd9347b93abdcfcd41d
1
typedef
union
_yystype
2
{
3
int
i
;
4
int
*
iptr
;
5
int
(*
ifunc
)(
int
);
6
void
(*
vfunc
)(
int
);
7
}
8
YYSTYPE
;
9
10
extern
int
f1
(
int
k
);
11
12
void
test
()
13
{
14
YYSTYPE a
;
15
int
(*
iptr
)(
int
);
16
int
foo
[
5
];
17
18
a
=
f1
;
/* { dg-error "incompatible types" } */
19
a
= (
YYSTYPE
)
f1
;
20
a
= (
YYSTYPE
)
foo
;
21
a
= (
YYSTYPE
)(
int
*)
foo
;
22
iptr
=
f1
;
23
a
=
iptr
;
/* { dg-error "incompatible types" } */
24
a
= (
YYSTYPE
)
iptr
;
25
}