[clang-rename] Add test case for r287758.

llvm-svn: 287759
This commit is contained in:
Benjamin Kramer 2016-11-23 13:14:19 +00:00
parent 66039d39e1
commit 1eba23b308

View File

@ -0,0 +1,9 @@
#include "Inputs/HeaderWithSymbol.h"
#define FOO int bar;
FOO
int foo;
// RUN: not clang-rename -new-name=qux -offset=259 %s -- 2>&1 | FileCheck %s
// CHECK-NOT: CHECK
// CHECK: error: SourceLocation in file {{.*}}InvalidOffset.cpp at offset 259 is invalid