re PR middle-end/26632 (spurious warning: value computed is not used)
PR middle-end/26632 * gcc.dg/pr26632.c: New. From-SVN: r116580
This commit is contained in:
parent
8c086c9c6e
commit
b0d3a6aeb8
1 changed files with 14 additions and 0 deletions
14
gcc/testsuite/gcc.dg/pr26632.c
Normal file
14
gcc/testsuite/gcc.dg/pr26632.c
Normal file
|
@ -0,0 +1,14 @@
|
|||
/* PR middle-end/26632
|
||||
We used to issue a warning for an implicit cast whose result is not
|
||||
used. */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-Wall" } */
|
||||
|
||||
int g (void);
|
||||
long h (void);
|
||||
|
||||
void
|
||||
f (void)
|
||||
{
|
||||
0 ? h () : g (); /* { dg-bogus "value computed is not used" } */
|
||||
}
|
Loading…
Add table
Reference in a new issue