llvm-for-llvmta/tools/clang/test/clang-rename/InvalidOffset.cpp

10 lines
259 B
C++
Raw Normal View History

2022-04-25 13:02:35 +02:00
#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