brintos

brintos / llvm-project-archived public Read only

0
0
Text · 396 B · 985054a Raw
16 lines · cpp
1struct map {2  void find(int);3  void find();4};5 6int main() {7  map *m;8  m->find(10);9  // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:%(line-1):11 %s -o - | FileCheck %s10  // CHECK: OVERLOAD: [#void#]find(<#int#>)11 12  // Also check when the lhs is an explicit pr-value.13  (m+0)->find(10);14  // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:%(line-1):15 %s -o - | FileCheck %s15}16