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
libgo: update to Go1.10beta1
[official-gcc.git]
/
gcc
/
testsuite
/
c-c++-common
/
Wtautological-compare-3.c
blob
64807b01d594f1fc2dea29ebb8d420d48e6584fd
1
/* { dg-do compile } */
2
/* { dg-options "-Wtautological-compare" } */
3
/* Test we don't warn for floats. */
4
5
struct
S
{
double
d
;
float
f
; };
6
7
void
8
fn1
(
int
i
,
float
f
,
double
d
,
struct
S
*
s
,
float
*
fp
)
9
{
10
if
(
f
==
f
);
11
if
(
f
!=
f
);
12
if
(
d
==
d
);
13
if
(
d
!=
d
);
14
if
(
fp
[
i
] ==
fp
[
i
]);
15
if
(
fp
[
i
] !=
fp
[
i
]);
16
if
(
s
->
f
==
s
->
f
);
17
if
(
s
->
f
!=
s
->
f
);
18
if
(
s
->
d
==
s
->
d
);
19
if
(
s
->
d
!=
s
->
d
);
20
}