1 | struct map { |
---|---|
2 | void find(int); |
3 | void find(); |
4 | }; |
5 | |
6 | int main() { |
7 | map *m; |
8 | m->find(10); |
9 | // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:8:11 %s -o - | FileCheck %s |
10 | // 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:13:15 %s -o - | FileCheck %s |
15 | } |
16 |