r203062 - Fix test from r203061
Richard Trieu
rtrieu at google.com
Wed Mar 5 18:28:23 PST 2014
Author: rtrieu
Date: Wed Mar 5 20:28:22 2014
New Revision: 203062
URL: http://llvm.org/viewvc/llvm-project?rev=203062&view=rev
Log:
Fix test from r203061
Modified:
cfe/trunk/test/SemaCXX/warn-absolute-value2.cpp
Modified: cfe/trunk/test/SemaCXX/warn-absolute-value2.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCXX/warn-absolute-value2.cpp?rev=203062&r1=203061&r2=203062&view=diff
==============================================================================
--- cfe/trunk/test/SemaCXX/warn-absolute-value2.cpp (original)
+++ cfe/trunk/test/SemaCXX/warn-absolute-value2.cpp Wed Mar 5 20:28:22 2014
@@ -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 at -1{{using integer absolute value function 'abs' when argument is of floating point type}}
}
More information about the cfe-commits
mailing list