brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · d2d5846 Raw
39 lines · cpp
1// Note: the run lines follow their respective tests, since line/column2// matter in this test.3 4template <int...> struct B {};5template <int> class C;6 7namespace method {8  struct S {9    template <int Z>10    void waldo(C<Z>);11 12    template <int... Is, int Z>13    void waldo(B<Is...>, C<Z>);14  };15 16  void foo() {17    S().waldo(/*invoke completion here*/);18    // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:%(line-1):15 %s -o - | FileCheck -check-prefix=CHECK-METHOD %s19    // CHECK-METHOD-LABEL: OPENING_PAREN_LOC:20    // CHECK-METHOD-NEXT: OVERLOAD: [#void#]waldo(<#C<Z>#>)21    // CHECK-METHOD-NEXT: OVERLOAD: [#void#]waldo(<#B<>#>, C<Z>)22  }23} // namespace method24namespace function {25  template <int Z>26  void waldo(C<Z>);27 28  template <int... Is, int Z>29  void waldo(B<Is...>, C<Z>);30 31  void foo() {32    waldo(/*invoke completion here*/);33    // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:%(line-1):11 %s -o - | FileCheck -check-prefix=CHECK-FUNC %s34    // CHECK-FUNC-LABEL: OPENING_PAREN_LOC:35    // CHECK-FUNC-NEXT: OVERLOAD: [#void#]waldo(<#B<>#>, C<Z>)36    // CHECK-FUNC-NEXT: OVERLOAD: [#void#]waldo(<#C<Z>#>)37  }38} // namespace function39