f4a2713ac8
Change-Id: Ia40e9ffdf29b5dab2f122f673ff6802a58bc690f
23 lines
693 B
C++
23 lines
693 B
C++
namespace std {
|
|
template<typename RandomAccessIterator>
|
|
void sort(RandomAccessIterator first, RandomAccessIterator last);
|
|
|
|
template<class X, class Y>
|
|
X* dyn_cast(Y *Val);
|
|
}
|
|
|
|
class Foo {
|
|
public:
|
|
template<typename T> T &getAs();
|
|
};
|
|
|
|
void f() {
|
|
std::sort(1, 2);
|
|
Foo().getAs<int>();
|
|
// RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:15:8 %s -o - | FileCheck -check-prefix=CHECK-CC1 %s
|
|
// CHECK-CC1: dyn_cast<<#class X#>>(<#Y *Val#>)
|
|
// CHECK-CC1: sort(<#RandomAccessIterator first#>, <#RandomAccessIterator last#>
|
|
// RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:16:9 %s -o - | FileCheck -check-prefix=CHECK-CC2 %s
|
|
// CHECK-CC2: getAs<<#typename T#>>()
|
|
)
|
|
|