bolt/deps/llvm-18.1.8/clang/test/CodeCompletion/signatures-crash.cpp
2025-02-14 19:21:04 +01:00

15 lines
396 B
C++

struct map {
void find(int);
void find();
};
int main() {
map *m;
m->find(10);
// RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:%(line-1):11 %s -o - | FileCheck %s
// CHECK: OVERLOAD: [#void#]find(<#int#>)
// Also check when the lhs is an explicit pr-value.
(m+0)->find(10);
// RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:%(line-1):15 %s -o - | FileCheck %s
}