aboutsummaryrefslogtreecommitdiff
path: root/test/Refactor/LocalRename/NoSymbolSelectedError.cpp
blob: 98de61a45f46a25d7ae624cfe5a765884d43096f (plain) (blame)
1
2
3
4
5
6
7
8
// RUN: not clang-refactor local-rename -selection=%s:4:1 -new-name=Bar %s -- 2>&1 | grep -v CHECK | FileCheck %s
// RUN: clang-refactor local-rename -selection=test:%s -new-name=Bar %s -- 2>&1 | grep -v CHECK | FileCheck --check-prefix=TESTCHECK %s

class Baz { // CHECK: [[@LINE]]:1: error: there is no symbol at the given location
};
/*range=*/;
// TESTCHECK:      1 '' results:
// TESTCHECK-NEXT: there is no symbol at the given location