| // Note: the run lines follow their respective tests, since line/column |
| template <int...> struct B {}; |
| template <int... Is, int Z> |
| void waldo(B<Is...>, C<Z>); |
| S().waldo(/*invoke completion here*/); |
| // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:%(line-1):15 %s -o - | FileCheck -check-prefix=CHECK-METHOD %s |
| // CHECK-METHOD-LABEL: OPENING_PAREN_LOC: |
| // CHECK-METHOD-NEXT: OVERLOAD: [#void#]waldo(<#C<Z>#>) |
| // CHECK-METHOD-NEXT: OVERLOAD: [#void#]waldo(<#B<>#>, C<Z>) |
| template <int... Is, int Z> |
| void waldo(B<Is...>, C<Z>); |
| waldo(/*invoke completion here*/); |
| // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:%(line-1):11 %s -o - | FileCheck -check-prefix=CHECK-FUNC %s |
| // CHECK-FUNC-LABEL: OPENING_PAREN_LOC: |
| // CHECK-FUNC-NEXT: OVERLOAD: [#void#]waldo(<#B<>#>, C<Z>) |
| // CHECK-FUNC-NEXT: OVERLOAD: [#void#]waldo(<#C<Z>#>) |