mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-13 03:12:46 +00:00
[clang-rename] Add test case for r287758.
llvm-svn: 287759
This commit is contained in:
parent
66039d39e1
commit
1eba23b308
9
clang-tools-extra/test/clang-rename/InvalidOffset.cpp
Normal file
9
clang-tools-extra/test/clang-rename/InvalidOffset.cpp
Normal 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
|
Loading…
x
Reference in New Issue
Block a user