[clang] 1009229 - [Clang] Fix a typo in implicit-int-float-conversion.c
via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 22 16:51:27 PDT 2020
Author: Yuanfang Chen
Date: 2020-09-22T16:51:23-07:00
New Revision: 10092291d7a770fee9eec8d8c7f60aeca9a8d7fb
URL: https://github.com/llvm/llvm-project/commit/10092291d7a770fee9eec8d8c7f60aeca9a8d7fb
DIFF: https://github.com/llvm/llvm-project/commit/10092291d7a770fee9eec8d8c7f60aeca9a8d7fb.diff
LOG: [Clang] Fix a typo in implicit-int-float-conversion.c
Added:
Modified:
clang/test/Sema/implicit-int-float-conversion.c
Removed:
################################################################################
diff --git a/clang/test/Sema/implicit-int-float-conversion.c b/clang/test/Sema/implicit-int-float-conversion.c
index f3ad08e4111a..94714de3f39c 100644
--- a/clang/test/Sema/implicit-int-float-conversion.c
+++ b/clang/test/Sema/implicit-int-float-conversion.c
@@ -16,7 +16,7 @@ void testAssignment() {
float ffff = 222222222222UL; // expected-warning {{changes value from 222222222222 to 222222221312}}
long l = 222222222222L;
-#ifdef NONCOST
+#ifdef NONCONST
float fff = l; // expected-warning {{implicit conversion from 'long' to 'float' may lose precision}}
#endif
}
More information about the cfe-commits
mailing list