Daniel Dunbar | 1ee4b9e | 2010-01-10 00:46:21 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -DA= -DB=1 -verify -fsyntax-only %s |
Andy Gibbs | 8e8fb3b | 2012-10-19 12:44:48 +0000 | [diff] [blame] | 2 | // expected-no-diagnostics |
Daniel Dunbar | 1ee4b9e | 2010-01-10 00:46:21 +0000 | [diff] [blame] | 3 | |
| 4 | int a[(B A) == 1 ? 1 : -1]; |
| 5 | |
Chris Lattner | 06b3a06 | 2012-08-31 22:39:21 +0000 | [diff] [blame] | 6 | |
| 7 | // PR13747 - Don't warn about unused results with statement exprs in macros. |
| 8 | void stuff(int,int,int); |
| 9 | #define memset(x,y,z) ({ stuff(x,y,z); x; }) |
| 10 | |
| 11 | void foo(int a, int b, int c) { |
| 12 | memset(a,b,c); // No warning! |
| 13 | } |