annotate clang/test/CodeCompletion/ctor-signature.cpp @ 150:1d019706d866

LLVM10
author anatofuz
date Thu, 13 Feb 2020 15:10:13 +0900
parents
children c4bab56944e8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 template <typename T>
anatofuz
parents:
diff changeset
2 struct Foo {};
anatofuz
parents:
diff changeset
3 template <typename T>
anatofuz
parents:
diff changeset
4 struct Foo<T *> { Foo(T); };
anatofuz
parents:
diff changeset
5
anatofuz
parents:
diff changeset
6 void foo() {
anatofuz
parents:
diff changeset
7 Foo<int>();
anatofuz
parents:
diff changeset
8 // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:7:12 %s -o - | FileCheck -check-prefix=CHECK-CC1 %s
anatofuz
parents:
diff changeset
9 // CHECK-CC1: OVERLOAD: Foo()
anatofuz
parents:
diff changeset
10 // CHECK-CC1: OVERLOAD: Foo(<#const Foo<int> &#>)
anatofuz
parents:
diff changeset
11 // CHECK-CC1: OVERLOAD: Foo(<#Foo<int> &&#>
anatofuz
parents:
diff changeset
12 Foo<int *>(3);
anatofuz
parents:
diff changeset
13 // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:12:14 %s -o - | FileCheck -check-prefix=CHECK-CC2 %s
anatofuz
parents:
diff changeset
14 // CHECK-CC2: OVERLOAD: Foo(<#int#>)
anatofuz
parents:
diff changeset
15 // CHECK-CC2: OVERLOAD: Foo(<#const Foo<int *> &#>)
anatofuz
parents:
diff changeset
16 // CHECK-CC2: OVERLOAD: Foo(<#Foo<int *> &&#>
anatofuz
parents:
diff changeset
17 }