brintos

brintos / llvm-project-archived public Read only

0
0
Text · 328 B · 68f2203 Raw
14 lines · c
1// RUN: %clang_cc1 -DA= -DB=1 -verify -fsyntax-only %s2// expected-no-diagnostics3 4int a[(B A) == 1 ? 1 : -1];5 6 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}14