Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
fp2-dev
/
platform
/
external
/
clang
/
6856c631cb15ec87cc92aad115a8fa6512612089
/
.
/
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 ==}}
}