llvm-for-llvmta/tools/clang/test/CodeCompletion/uninstantiated_params.cpp

14 lines
320 B
C++
Raw Permalink Normal View History

2022-04-25 13:02:35 +02:00
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()#>#})
}