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
Require target lra in gcc.dg/pr108095.c
[official-gcc.git]
/
gcc
/
testsuite
/
c-c++-common
/
Wparentheses-2.c
blob
1aa5d314ae762a7394b7d94d0b8b8a7585bf0e4e
1
// PR c++/95344 - bogus -Wparentheses warning.
2
// { dg-do compile }
3
// { dg-options "-Wparentheses" }
4
5
#ifndef __cplusplus
6
# define bool _Bool
7
# define true 1
8
# define false 0
9
#endif
10
11
void
12
f
(
int
i
)
13
{
14
bool
b
=
false
;
15
if
(
i
==
99
? (
b
=
true
) :
false
)
// { dg-bogus "suggest parentheses" }
16
{
17
}
18
}