view clang/test/CodeCompletion/uninstantiated_params.cpp @ 180:680fa57a2f20

fix compile errors.
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sat, 30 May 2020 17:44:06 +0900
parents 1d019706d866
children 1f2b6ac9f198
line wrap: on
line source

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()#>#})
}