OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
PR c/18624
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
gcc.dg
/
Wunused-var-3.c
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
}