summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/unused-expr.c
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-12-30 22:10:22 +0000
committerChris Lattner <sabre@nondot.org>2009-12-30 22:10:22 +0000
commitd866c5a6786dffaf5000ff04777f4fbfd79997a5 (patch)
tree610d3402f31f5e97bc3c375d62b5fde72142e252 /clang/test/Sema/unused-expr.c
parent8977c433d3378b59a7b558f148719ce68d169360 (diff)
downloadbcm5719-llvm-d866c5a6786dffaf5000ff04777f4fbfd79997a5.tar.gz
bcm5719-llvm-d866c5a6786dffaf5000ff04777f4fbfd79997a5.zip
testcase for previous patch!
llvm-svn: 92317
Diffstat (limited to 'clang/test/Sema/unused-expr.c')
-rw-r--r--clang/test/Sema/unused-expr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/test/Sema/unused-expr.c b/clang/test/Sema/unused-expr.c
index 30f6aee26b4..f5c64e6715c 100644
--- a/clang/test/Sema/unused-expr.c
+++ b/clang/test/Sema/unused-expr.c
@@ -91,6 +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}}
return 0;
}
OpenPOWER on IntegriCloud