brintos

brintos / llvm-project-archived public Read only

0
0
Text · 327 B · 6df9d48 Raw
14 lines · cpp
1template <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:%(line-1):5 %s -o - | FileCheck -check-prefix=CHECK-CC1 %s12  // CHECK-CC1: [#void#]reset({#<#pointer ptr = pointer()#>#})13}14