]> granicus.if.org Git - clang/commitdiff
Change an absolute value function in a test from floating to integer to
authorRichard Trieu <rtrieu@google.com>
Thu, 23 Jan 2014 03:51:55 +0000 (03:51 +0000)
committerRichard Trieu <rtrieu@google.com>
Thu, 23 Jan 2014 03:51:55 +0000 (03:51 +0000)
match argument type.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@199867 91177308-0d34-0410-b5e6-96231b3b80d8

test/Sema/unused-expr.c

index ea08631ebae35153cffd06b839d6a02f70818a8a..bb7882de40f70328ba80bfccc1e24894f6c37a93 100644 (file)
@@ -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;
 }