Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
fp2-dev
/
platform
/
external
/
clang
/
c716c94b77c762aaa320b24b51d238cfdcc6b6c5
/
.
/
test
/
Sema
/
floating-point-compare.c
blob: 008bedf97769127931dea377e36ebf6b2110a376 [
file
] [
log
] [
blame
]
// RUN: clang -parse-ast-check %s
int
foo
(
float
x
,
float
y
)
{
return
x
==
y
;
// expected-warning {{comparing floating point with ==}}
}
int
bar
(
float
x
,
float
y
)
{
return
x
!=
y
;
// expected-warning {{comparing floating point with ==}}
}