summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/warn/Wunused-var-9.C
blob: cb422f45cbb17b2784d07f276c8ba1145bb056cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* PR c++/44062 */
/* { dg-do compile } */
/* { dg-options "-Wunused" } */

void
f ()
{
  int i = 4;
  static_cast <void> (i);
  int j;
  j = 5;
  static_cast <void> (j);
}