You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
320 B
14 lines
320 B
template <class T>
|
|
struct unique_ptr {
|
|
typedef T* pointer;
|
|
|
|
void reset(pointer ptr = pointer());
|
|
};
|
|
|
|
void test() {
|
|
unique_ptr<int> x;
|
|
x.
|
|
// RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:10:5 %s -o - | FileCheck -check-prefix=CHECK-CC1 %s
|
|
// CHECK-CC1: [#void#]reset({#<#pointer ptr = pointer()#>#})
|
|
}
|