blob: 68f220339dbfad67f864a5de7a7c502a6b1fe09f [file] [log] [blame]
Daniel Dunbar1ee4b9e2010-01-10 00:46:21 +00001// RUN: %clang_cc1 -DA= -DB=1 -verify -fsyntax-only %s
Andy Gibbs8e8fb3b2012-10-19 12:44:48 +00002// expected-no-diagnostics
Daniel Dunbar1ee4b9e2010-01-10 00:46:21 +00003
4int a[(B A) == 1 ? 1 : -1];
5
Chris Lattner06b3a062012-08-31 22:39:21 +00006
7// PR13747 - Don't warn about unused results with statement exprs in macros.
8void stuff(int,int,int);
9#define memset(x,y,z) ({ stuff(x,y,z); x; })
10
11void foo(int a, int b, int c) {
12 memset(a,b,c); // No warning!
13}