summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/warn/Wunused-8.C
blob: a1c8a1fb4268b8ad7f845f0d41ca11cfe5040d18 (plain)
1
2
3
4
5
6
7
8
9
// PR c++/16029
// { dg-options "-Wunused" }

int main ()
{
  // We should not see an "unused" warning about "whatever" on the
  // next line.
  return whatever (); // { dg-error "declared" }
}