r199867 - Change an absolute value function in a test from floating to integer to

Richard Trieu rtrieu at google.com
Wed Jan 22 19:51:55 PST 2014


Author: rtrieu
Date: Wed Jan 22 21:51:55 2014
New Revision: 199867

URL: http://llvm.org/viewvc/llvm-project?rev=199867&view=rev
Log:
Change an absolute value function in a test from floating to integer to
match argument type.

Modified:
    cfe/trunk/test/Sema/unused-expr.c

Modified: cfe/trunk/test/Sema/unused-expr.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/unused-expr.c?rev=199867&r1=199866&r2=199867&view=diff
==============================================================================
--- cfe/trunk/test/Sema/unused-expr.c (original)
+++ cfe/trunk/test/Sema/unused-expr.c Wed Jan 22 21:51:55 2014
@@ -91,7 +91,7 @@ int t6() {
   fn1();  // expected-warning {{ignoring return value of function declared with warn_unused_result attribute}}
   fn2(92, 21);  // expected-warning {{ignoring return value of function declared with pure attribute}}
   fn3(42);  // expected-warning {{ignoring return value of function declared with const attribute}}
-  __builtin_fabsf(0); // expected-warning {{ignoring return value of function declared with const attribute}}
+  __builtin_abs(0); // expected-warning {{ignoring return value of function declared with const attribute}}
   (void)0, fn1();  // expected-warning {{ignoring return value of function declared with warn_unused_result attribute}}
   return 0;
 }





More information about the cfe-commits mailing list