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