aboutsummaryrefslogtreecommitdiff
path: root/test/CodeCompletion/end-of-file.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeCompletion/end-of-file.cpp')
-rw-r--r--test/CodeCompletion/end-of-file.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/CodeCompletion/end-of-file.cpp b/test/CodeCompletion/end-of-file.cpp
new file mode 100644
index 000000000000..178ef4561f56
--- /dev/null
+++ b/test/CodeCompletion/end-of-file.cpp
@@ -0,0 +1,7 @@
+// Check that clang does not crash when completing at the last char in the
+// buffer.
+// NOTE: This file must *NOT* have newline at the end.
+// RUN: %clang_cc1 -code-completion-at=%s:7:2 %s | FileCheck %s
+// CHECK: COMPLETION: foo
+using foo = int***;
+f \ No newline at end of file