summaryrefslogtreecommitdiff
path: root/test/clang-rename/InvalidNewName.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/clang-rename/InvalidNewName.cpp')
-rw-r--r--test/clang-rename/InvalidNewName.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/clang-rename/InvalidNewName.cpp b/test/clang-rename/InvalidNewName.cpp
new file mode 100644
index 0000000000000..e6b38e59420a8
--- /dev/null
+++ b/test/clang-rename/InvalidNewName.cpp
@@ -0,0 +1,2 @@
+// RUN: not clang-rename -new-name=class -offset=133 %s 2>&1 | FileCheck %s
+// CHECK: ERROR: new name is not a valid identifier in C++17.