brintos

brintos / llvm-project-archived public Read only

0
0
Text · 479 B · bf89ba5 Raw
22 lines · cpp
1class foo {2  void mut_func() {3    [this]() {4 5    }();6    // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:%(line-2):1 %s -o - | FileCheck -check-prefix=CHECK-CC1 %s7    // CHECK-CC1: const_func8    // CHECK-CC1: mut_func9  }10 11  void const_func() const {12    [this]() {13 14    }();15    // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:%(line-2):1 %s -o - | FileCheck -check-prefix=CHECK-CC2 %s16    // CHECK-CC2-NOT: mut_func17    // CHECK-CC2: const_func18  };19};20 21 22