// RUN: %clang_cc1 -fsyntax-only -Wliteral-conversion -verify %s
void ;
// Warn when a literal float or double is assigned or bound to an integer.
void
// Similarly, test floating point conversion to bool. Only float values of zero
// are converted to false; everything else is converted to true.
void
int // expected-warning{{implicit conversion from 'double' to 'int' changes value from 2147483647.5 to 2147483647}}
unsigned // expected-warning{{implicit conversion from 'double' to 'unsigned int' changes value from -0.5 to 0}}