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

int bar (int);

int
foo (int a)
{
  int b[] = { a, -a };
  a += b[bar (a) < a];
  return a;
}