r339593 - [Sema] fix -Wfloat-conversion test case.
Nick Desaulniers via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 13 11:07:50 PDT 2018
Author: nickdesaulniers
Date: Mon Aug 13 11:07:50 2018
New Revision: 339593
URL: http://llvm.org/viewvc/llvm-project?rev=339593&view=rev
Log:
[Sema] fix -Wfloat-conversion test case.
Summary:
Fixes r339581 ("[SEMA] add more -Wfloat-conversion to
compound assigment analysis").
This test case was caught in postsubmit testing.
Reviewers: aaron.ballman, gkistanova
Reviewed By: aaron.ballman
Subscribers: cfe-commits, srhines
Differential Revision: https://reviews.llvm.org/D50647
Modified:
cfe/trunk/test/Sema/conversion.c
Modified: cfe/trunk/test/Sema/conversion.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/conversion.c?rev=339593&r1=339592&r2=339593&view=diff
==============================================================================
--- cfe/trunk/test/Sema/conversion.c (original)
+++ cfe/trunk/test/Sema/conversion.c Mon Aug 13 11:07:50 2018
@@ -359,7 +359,7 @@ void f7676608(int);
void test_7676608(void) {
float q = 0.7f;
char c = 5;
- f7676608(c *= q);
+ f7676608(c *= q); // expected-warning {{conversion}}
}
// <rdar://problem/7904686>
More information about the cfe-commits
mailing list