diff --git a/clang/test/SemaCXX/warn-absolute-value2.cpp b/clang/test/SemaCXX/warn-absolute-value2.cpp index 2affcb18f0b7..5f7e8918787f 100644 --- a/clang/test/SemaCXX/warn-absolute-value2.cpp +++ b/clang/test/SemaCXX/warn-absolute-value2.cpp @@ -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}} }