Douglas Gregor | 56ff871 | 2009-09-18 22:47:56 +0000 | [diff] [blame] | 1 | namespace std { |
| 2 | template<typename T> |
| 3 | class allocator; |
| 4 | |
| 5 | template<typename T, typename Alloc = std::allocator<T> > |
| 6 | class vector; |
| 7 | } |
| 8 | |
| 9 | void f() { |
Douglas Gregor | b657f11 | 2009-09-22 21:11:38 +0000 | [diff] [blame] | 10 | std:: |
Daniel Dunbar | 4fcfde4 | 2009-11-08 01:45:36 +0000 | [diff] [blame] | 11 | // RUN: clang-cc -fsyntax-only -code-completion-at=%s:10:8 %s -o - | FileCheck -check-prefix=CC1 %s |
Douglas Gregor | 56ff871 | 2009-09-18 22:47:56 +0000 | [diff] [blame] | 12 | // CHECK-CC1: allocator<<#typename T#>> |
| 13 | // CHECK-CC1: vector<<#typename T#>{#, <#typename Alloc#>#}> |
Douglas Gregor | b657f11 | 2009-09-22 21:11:38 +0000 | [diff] [blame] | 14 | |
| 15 | |
Douglas Gregor | 56ff871 | 2009-09-18 22:47:56 +0000 | [diff] [blame] | 16 | |