Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/c-c++-common/Wunused-var-3.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
68:561a7518be6b | 111:04ced10e8804 |
---|---|
1 /* { dg-do compile } */ | |
2 /* { dg-options "-Wunused" } */ | |
3 | |
4 void | |
5 f1 (void) | |
6 { | |
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; | |
13 } | |
14 | |
15 int | |
16 f2 (void) | |
17 { | |
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; | |
25 } | |
26 | |
27 _Complex double | |
28 f3 (void) | |
29 { | |
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; | |
37 } |