aboutsummaryrefslogtreecommitdiff
path: root/test/CodeCompletion/templates.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeCompletion/templates.cpp')
-rw-r--r--test/CodeCompletion/templates.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/CodeCompletion/templates.cpp b/test/CodeCompletion/templates.cpp
new file mode 100644
index 0000000000..f7751413b9
--- /dev/null
+++ b/test/CodeCompletion/templates.cpp
@@ -0,0 +1,17 @@
+// RUN: clang-cc -fsyntax-only -code-completion-dump=1 %s -o - | FileCheck -check-prefix=CC1 %s &&
+// RUN: true
+
+namespace std {
+ template<typename T>
+ class allocator;
+
+ template<typename T, typename Alloc = std::allocator<T> >
+ class vector;
+}
+
+void f() {
+ // CHECK-CC1: allocator<<#typename T#>>
+ // CHECK-CC1: vector<<#typename T#>{#, <#typename Alloc#>#}>
+ std::
+
+