diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2008-05-19 21:24:43 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2008-05-19 21:24:43 +0000 |
commit | ca8da1d89da6961e0b4c7c296c43649c41e053e5 (patch) | |
tree | 5993ce12168f349fee5751fd557b2d182a57179b /clang/test/Sema/unused-expr.c | |
parent | b42712288e1d63b52728d1c631c880e160f507fe (diff) | |
download | bcm5719-llvm-ca8da1d89da6961e0b4c7c296c43649c41e053e5.tar.gz bcm5719-llvm-ca8da1d89da6961e0b4c7c296c43649c41e053e5.zip |
Make the unused expression warning a bit less aggressive (found in PHP
code).
llvm-svn: 51276
Diffstat (limited to 'clang/test/Sema/unused-expr.c')
-rw-r--r-- | clang/test/Sema/unused-expr.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/test/Sema/unused-expr.c b/clang/test/Sema/unused-expr.c index 305c2be06b5..b14daa702dd 100644 --- a/clang/test/Sema/unused-expr.c +++ b/clang/test/Sema/unused-expr.c @@ -35,3 +35,8 @@ int stmt_expr(int x, int y) { return ({int _a = x, _b = y; _a > _b ? _a : _b; }); } +void nowarn(unsigned char* a, unsigned char* b) +{ + unsigned char c = 1; + *a |= c, *b += c; +} |