blob: ec9630fdedb6affba79972eb17679ee56336c4f1 [file] [log] [blame]
Kirill Bobyrev77f522c2016-08-10 13:28:30 +00001namespace gcc /* Test 1 */ { // CHECK: namespace clang /* Test 1 */ {
Kirill Bobyrev713bdc02016-07-15 10:21:33 +00002 int x;
3}
4
5void boo() {
Kirill Bobyrev77f522c2016-08-10 13:28:30 +00006 gcc::x = 42; // CHECK: clang::x = 42;
Kirill Bobyrev713bdc02016-07-15 10:21:33 +00007}
8
Kirill Bobyrev77f522c2016-08-10 13:28:30 +00009// Test 1.
10// RUN: clang-rename -offset=10 -new-name=clang %s -- | sed 's,//.*,,' | FileCheck %s
11
12// To find offsets after modifying the file, use:
13// grep -Ubo 'Foo.*' <file>