repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fix broken MinGW build of gcc.c
[official-gcc.git]
/
gcc
/
testsuite
/
c-c++-common
/
Wunused-var-3.c
blob
9b1fce77ad3ad49410084dcc6dae487ef742442e
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
}