projects
/
gcc.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
PR tree-optimization/93683 - ICE on calloc with unused return value in ao_ref_init_fr...
[gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
pr56989.c
1
/* PR c/56989 */
2
/* { dg-do compile } */
3
4
extern
void
voidf
(
void
);
5
extern
int
intf
(
void
);
6
7
int
8
f
(
void
)
9
{
10
if
(
intf
() <
0
11
||
voidf
() <
0
)
/* { dg-error "10:void value not ignored as it ought to be" } */
12
return
1
;
13
14
if
(
voidf
() <
0
/* { dg-error "7:void value not ignored as it ought to be" } */
15
||
intf
() <
0
)
16
return
1
;
17
18
return
0
;
19
}