summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/warn/Wunused-16.C
blob: c9e57f79b54b509a4e17abb271ee88b496d7ca38 (plain)
1
2
3
4
5
6
7
8
9
// { dg-do compile }
// { dg-options "-Wunused-value" }

extern void f1();
void
f(bool b)
{
  b ? f1(), 0 : 0;	// { dg-bogus "has no effect" }
}