blob: e339d5635754293c038c8b1538f26fc4a1e981c7 [file] [log] [blame]
Daniel Dunbard7d5f022009-03-24 02:24:46 +00001// RUN: clang-cc -fsyntax-only %s 2>&1 | not grep keyXXXX
Chris Lattner2bc69bd2009-03-08 08:16:41 +00002// This should not show keyXXXX in the caret diag output. This once
3// happened because the two tokens ended up in the scratch buffer and
4// the caret diag from the scratch buffer included the previous token.
5#define M(name) \
6 if (name ## XXXX != name ## _sb);
7
8void foo() {
9 int keyXXXX;
10 M(key);
11}
12