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

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: vector<<#typename T#>{#, <#typename Alloc#>#}>
  // RUN: true
  
  

OpenPOWER on IntegriCloud