PR target/83368
[official-gcc.git] / gcc / testsuite / c-c++-common / Wunused-var-3.c
blob9b1fce77ad3ad49410084dcc6dae487ef742442e
1 /* { dg-do compile } */
2 /* { dg-options "-Wunused" } */
4 void
5 f1 (void)
7 _Complex int a; /* { dg-warning "set but not used" } */
8 _Complex double b; /* { dg-warning "set but not used" } */
9 __real__ a = 1;
10 __imag__ a = 2;
11 __real__ b = 3.0;
12 __imag__ b = 4.0;
15 int
16 f2 (void)
18 _Complex int a;
19 _Complex double b;
20 __real__ a = 1;
21 __imag__ a = 2;
22 __real__ b = 3.0;
23 __imag__ b = 4.0;
24 return __real__ a + __imag__ b;
27 _Complex double
28 f3 (void)
30 _Complex int a;
31 _Complex double b;
32 __real__ a = 1;
33 __imag__ a = 2;
34 __real__ b = 3.0;
35 __imag__ b = 4.0;
36 return a + b;