Douglas Gregor | 63f07c5 | 2009-09-18 23:21:38 +0000 | [diff] [blame] | 1 | namespace std { |
| 2 | template<typename RandomAccessIterator> |
| 3 | void sort(RandomAccessIterator first, RandomAccessIterator last); |
| 4 | |
| 5 | template<class X, class Y> |
| 6 | X* dyn_cast(Y *Val); |
| 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 | 63f07c5 | 2009-09-18 23:21:38 +0000 | [diff] [blame] | 12 | // CHECK-CC1: dyn_cast<<#class X#>>(<#Y *Val#>) |
| 13 | // CHECK-CC1: sort(<#RandomAccessIterator first#>, <#RandomAccessIterator last#>) |
Douglas Gregor | 63f07c5 | 2009-09-18 23:21:38 +0000 | [diff] [blame] | 14 | |