aboutsummaryrefslogtreecommitdiff
path: root/test/CodeCompletion/templates.cpp
blob: 5a0bdb19f15c0ef640173701504b859b70139202 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
namespace std {
  template<typename T>
  class allocator;
  
  template<typename T, typename Alloc = std::allocator<T> > class vector;
  template<typename Alloc> class vector<bool, Alloc>;
}

void f() {
  std::
  // RUN: clang-cc -fsyntax-only -code-completion-at=%s:10:8 %s -o - | FileCheck -check-prefix=CC1 %s
  // CHECK-CC1: allocator<<#typename T#>>
  // CHECK-CC1-NEXT: vector<<#typename T#>{#, <#typename Alloc#>#}>