summaryrefslogtreecommitdiff
path: root/test/clang-rename/NoNewName.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/clang-rename/NoNewName.cpp')
-rw-r--r--test/clang-rename/NoNewName.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/clang-rename/NoNewName.cpp b/test/clang-rename/NoNewName.cpp
new file mode 100644
index 000000000000..4f882d83b0c1
--- /dev/null
+++ b/test/clang-rename/NoNewName.cpp
@@ -0,0 +1,4 @@
+// Check for an error while -new-name argument has not been passed to
+// clang-rename.
+// RUN: not clang-rename -offset=133 %s 2>&1 | FileCheck %s
+// CHECK: clang-rename: -new-name must be specified.