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
Implement C _FloatN, _FloatNx types.
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
pr43082.c
blob
a6e00461673c76792f3686e780df7abced70539e
1
/* Test that the compiler does not crash when void expressions are
2
found inside conditional expressions. PR c/43082. */
3
/* { dg-do compile } */
4
5
void
6
foo
(
int
x
)
7
{
8
if
(
x
? (
void
)(
0
) : (
void
)(
1
))
/* { dg-error "void value not ignored as it ought to be" } */
9
;
10
}