| commit | 493d6d55ba6f11f27dffa36781e9d653aacd7f70 | [log] [tgz] |
|---|---|---|
| author | Matt Beaumont-Gay <matthewbg@google.com> | Tue Oct 23 23:19:32 2012 +0000 |
| committer | Matt Beaumont-Gay <matthewbg@google.com> | Tue Oct 23 23:19:32 2012 +0000 |
| tree | b51fafc9fa854af3ee50400dc065060b950f41a6 | |
| parent | 949cc509621a61e243099eb831773c1761c06274 [diff] [blame] |
Don't emit -Wunused-value warnings from macro expansions. llvm-svn: 166522
diff --git a/clang/test/Sema/unused-expr.c b/clang/test/Sema/unused-expr.c index 056d09a..6677e48 100644 --- a/clang/test/Sema/unused-expr.c +++ b/clang/test/Sema/unused-expr.c
@@ -122,3 +122,10 @@ // PR8371 int fn5() __attribute__ ((__const)); + +// OpenSSL has some macros like this. +#define M(a, b) (long)foo((a), (b)) +void t11(int i, int j) { + M(i, j); // no warning +} +#undef M