[PATCH] D50647: [Sema] fix -Wfloat-conversion test case.
    Nick Desaulniers via Phabricator via cfe-commits 
    cfe-commits at lists.llvm.org
       
    Mon Aug 13 11:08:37 PDT 2018
    
    
  
This revision was automatically updated to reflect the committed changes.
Closed by commit rL339593: [Sema] fix -Wfloat-conversion test case. (authored by nickdesaulniers, committed by ).
Herald added a subscriber: llvm-commits.
Repository:
  rL LLVM
https://reviews.llvm.org/D50647
Files:
  cfe/trunk/test/Sema/conversion.c
Index: cfe/trunk/test/Sema/conversion.c
===================================================================
--- cfe/trunk/test/Sema/conversion.c
+++ cfe/trunk/test/Sema/conversion.c
@@ -359,7 +359,7 @@
 void test_7676608(void) {
   float q = 0.7f;
   char c = 5;
-  f7676608(c *= q);
+  f7676608(c *= q); // expected-warning {{conversion}}
 }
 
 // <rdar://problem/7904686>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D50647.160401.patch
Type: text/x-patch
Size: 374 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180813/d63281ed/attachment.bin>
    
    
More information about the cfe-commits
mailing list