blob: 643f2f72553b1c3b15b4afc2db14ba1afd84c114 [file] [log] [blame]
Ilya Biryukovb6d1ec82017-07-21 09:24:00 +00001template <class T>
2struct unique_ptr {
3 typedef T* pointer;
4
5 void reset(pointer ptr = pointer());
6};
7
8void test() {
9 unique_ptr<int> x;
10 x.
11 // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:10:5 %s -o - | FileCheck -check-prefix=CHECK-CC1 %s
Ilya Biryukovb5da91c2017-11-08 10:39:09 +000012 // CHECK-CC1: [#void#]reset({#<#pointer ptr = pointer()#>#})
Ilya Biryukovb6d1ec82017-07-21 09:24:00 +000013}