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

int
f1 (void)
{
  int c = ({
    int a;
    a = 1;
    a; });
  return c;
}

void
f2 (void)
{
  int f;
  f = 0;
  __asm__ __volatile__ ("" : "+r" (f));
}