OSDN Git Service

2012-01-30 Richard Guenther <rguenther@suse.de>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / c-c++-common / Wunused-var-2.c
1 /* { dg-do compile } */
2 /* { dg-options "-Wunused" } */
3
4 int
5 f1 (void)
6 {
7   int c = ({
8     int a;
9     a = 1;
10     a; });
11   return c;
12 }
13
14 void
15 f2 (void)
16 {
17   int f;
18   f = 0;
19   __asm__ __volatile__ ("" : "+r" (f));
20 }