Mercurial > hg > CbC > CbC_llvm
annotate clang/test/Frontend/macros.c @ 266:00f31e85ec16 default tip
Added tag current for changeset 31d058e83c98
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 14 Oct 2023 10:13:55 +0900 |
parents | 1d019706d866 |
children |
rev | line source |
---|---|
150 | 1 // RUN: %clang_cc1 -DA= -DB=1 -verify -fsyntax-only %s |
2 // expected-no-diagnostics | |
3 | |
4 int a[(B A) == 1 ? 1 : -1]; | |
5 | |
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 } |