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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // RUN: %clang_cc1 -DA= -DB=1 -verify -fsyntax-only %s
anatofuz
parents:
diff changeset
2 // expected-no-diagnostics
anatofuz
parents:
diff changeset
3
anatofuz
parents:
diff changeset
4 int a[(B A) == 1 ? 1 : -1];
anatofuz
parents:
diff changeset
5
anatofuz
parents:
diff changeset
6
anatofuz
parents:
diff changeset
7 // PR13747 - Don't warn about unused results with statement exprs in macros.
anatofuz
parents:
diff changeset
8 void stuff(int,int,int);
anatofuz
parents:
diff changeset
9 #define memset(x,y,z) ({ stuff(x,y,z); x; })
anatofuz
parents:
diff changeset
10
anatofuz
parents:
diff changeset
11 void foo(int a, int b, int c) {
anatofuz
parents:
diff changeset
12 memset(a,b,c); // No warning!
anatofuz
parents:
diff changeset
13 }