summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/test/clang-rename/Namespace.cpp
blob: ec9630fdedb6affba79972eb17679ee56336c4f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
namespace gcc /* Test 1 */ {  // CHECK: namespace clang /* Test 1 */ {
  int x;
}

void boo() {
  gcc::x = 42;                // CHECK: clang::x = 42;
}

// Test 1.
// RUN: clang-rename -offset=10 -new-name=clang %s -- | sed 's,//.*,,' | FileCheck %s

// To find offsets after modifying the file, use:
//   grep -Ubo 'Foo.*' <file>
OpenPOWER on IntegriCloud