summaryrefslogtreecommitdiff
path: root/test/clang-rename/InvalidOffset.cpp
blob: 2ae04d01e4a7c34326a8b49c3a1c1931053f9c7d (plain)
1
2
3
4
5
6
7
8
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