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