]> granicus.if.org Git - clang/commitdiff
Fix test from r203061
authorRichard Trieu <rtrieu@google.com>
Thu, 6 Mar 2014 02:28:22 +0000 (02:28 +0000)
committerRichard Trieu <rtrieu@google.com>
Thu, 6 Mar 2014 02:28:22 +0000 (02:28 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@203062 91177308-0d34-0410-b5e6-96231b3b80d8

test/SemaCXX/warn-absolute-value2.cpp

index 2affcb18f0b7bea0e6c828000399c5ca6a044f75..5f7e8918787fabd898449ffee8862abd7b106577 100644 (file)
@@ -2,12 +2,12 @@
 
 extern "C" {
 int abs(int);
-long labs(long);
+double fabs(double);
 }
 
-using ::labs;
+using ::fabs;
 
-long test(long x) {
+double test(double x) {
   return ::abs(x);
   // expected-warning@-1{{using integer absolute value function 'abs' when argument is of floating point type}}
 }