Mercurial > hg > CbC > CbC_llvm
comparison clang/test/CodeCompletion/ctor-signature.cpp @ 150:1d019706d866
LLVM10
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 15:10:13 +0900 |
parents | |
children | c4bab56944e8 |
comparison
equal
deleted
inserted
replaced
147:c2174574ed3a | 150:1d019706d866 |
---|---|
1 template <typename T> | |
2 struct Foo {}; | |
3 template <typename T> | |
4 struct Foo<T *> { Foo(T); }; | |
5 | |
6 void foo() { | |
7 Foo<int>(); | |
8 // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:7:12 %s -o - | FileCheck -check-prefix=CHECK-CC1 %s | |
9 // CHECK-CC1: OVERLOAD: Foo() | |
10 // CHECK-CC1: OVERLOAD: Foo(<#const Foo<int> &#>) | |
11 // CHECK-CC1: OVERLOAD: Foo(<#Foo<int> &&#> | |
12 Foo<int *>(3); | |
13 // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:12:14 %s -o - | FileCheck -check-prefix=CHECK-CC2 %s | |
14 // CHECK-CC2: OVERLOAD: Foo(<#int#>) | |
15 // CHECK-CC2: OVERLOAD: Foo(<#const Foo<int *> &#>) | |
16 // CHECK-CC2: OVERLOAD: Foo(<#Foo<int *> &&#> | |
17 } |