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