From 882abeb2f828b519aa1c4b25ff8ac995e573cd5f Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 5 May 2009 21:52:01 +0000 Subject: rename test llvm-svn: 71024 --- clang/test/Misc/caret-diags-scratch-buffer.c | 12 ++++++++++++ clang/test/Misc/caret-diags.c | 12 ------------ 2 files changed, 12 insertions(+), 12 deletions(-) create mode 100644 clang/test/Misc/caret-diags-scratch-buffer.c delete mode 100644 clang/test/Misc/caret-diags.c (limited to 'clang/test') diff --git a/clang/test/Misc/caret-diags-scratch-buffer.c b/clang/test/Misc/caret-diags-scratch-buffer.c new file mode 100644 index 00000000000..e339d563575 --- /dev/null +++ b/clang/test/Misc/caret-diags-scratch-buffer.c @@ -0,0 +1,12 @@ +// RUN: clang-cc -fsyntax-only %s 2>&1 | not grep keyXXXX +// This should not show keyXXXX in the caret diag output. This once +// happened because the two tokens ended up in the scratch buffer and +// the caret diag from the scratch buffer included the previous token. +#define M(name) \ + if (name ## XXXX != name ## _sb); + +void foo() { + int keyXXXX; + M(key); +} + diff --git a/clang/test/Misc/caret-diags.c b/clang/test/Misc/caret-diags.c deleted file mode 100644 index e339d563575..00000000000 --- a/clang/test/Misc/caret-diags.c +++ /dev/null @@ -1,12 +0,0 @@ -// RUN: clang-cc -fsyntax-only %s 2>&1 | not grep keyXXXX -// This should not show keyXXXX in the caret diag output. This once -// happened because the two tokens ended up in the scratch buffer and -// the caret diag from the scratch buffer included the previous token. -#define M(name) \ - if (name ## XXXX != name ## _sb); - -void foo() { - int keyXXXX; - M(key); -} - -- cgit v1.2.3