You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
464 B
22 lines
464 B
4 months ago
|
class foo {
|
||
|
void mut_func() {
|
||
|
[this]() {
|
||
|
|
||
|
}();
|
||
|
// RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:4:1 %s -o - | FileCheck -check-prefix=CHECK-CC1 %s
|
||
|
// CHECK-CC1: const_func
|
||
|
// CHECK-CC1: mut_func
|
||
|
}
|
||
|
|
||
|
void const_func() const {
|
||
|
[this]() {
|
||
|
|
||
|
}();
|
||
|
// RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:13:1 %s -o - | FileCheck -check-prefix=CHECK-CC2 %s
|
||
|
// CHECK-CC2-NOT: mut_func
|
||
|
// CHECK-CC2: const_func
|
||
|
};
|
||
|
};
|
||
|
|
||
|
|