forked from OSchip/llvm-project
15 lines
335 B
C++
15 lines
335 B
C++
// RUN: cat %s > %t.cpp
|
|
// RUN: clang-rename -offset=143 -new-name=llvm %t.cpp -i --
|
|
// RUN: sed 's,//.*,,' %t.cpp | FileCheck %s
|
|
|
|
namespace foo { // CHECK: namespace llvm {
|
|
int x;
|
|
}
|
|
|
|
void boo() {
|
|
foo::x = 42; // CHECK: llvm::x = 42;
|
|
}
|
|
|
|
// Use grep -FUbo 'foo;' <file> to get the correct offset of foo when changing
|
|
// this file.
|