summaryrefslogtreecommitdiffstats
path: root/test/Index/complete-preamble.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/Index/complete-preamble.cpp')
-rw-r--r--test/Index/complete-preamble.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Index/complete-preamble.cpp b/test/Index/complete-preamble.cpp
new file mode 100644
index 0000000..8f48105
--- /dev/null
+++ b/test/Index/complete-preamble.cpp
@@ -0,0 +1,8 @@
+#include "complete-preamble.h"
+void f() {
+ std::
+}
+
+// RUN: env CINDEXTEST_EDITING=1 c-index-test -code-completion-at=%s:3:8 %s -o - | FileCheck -check-prefix=CC1 %s
+// CHECK-CC1: {ResultType void}{TypedText wibble}{LeftParen (}{RightParen )} (50) (parent: Namespace 'std')
+
OpenPOWER on IntegriCloud