summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/Wunused-var-2.c
blob: b5a22f86545c44f4f62fb513fe565e5ad5f0914b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* { dg-do compile } */
/* { dg-options "-Wunused" } */

int
f1 (void)
{
  int a;
  int b;
  int c;
  int d;
  int e;
  a = 1;
  b = 2;
  c = 3;
  d = 4;
  e = 5;
  return sizeof (a) + ((__typeof (b)) 1) + __alignof__ (c)
         + __builtin_choose_expr (1, d, e);
}