diff options
Diffstat (limited to 'test/CodeCompletion/signatures-crash.cpp')
-rw-r--r-- | test/CodeCompletion/signatures-crash.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/CodeCompletion/signatures-crash.cpp b/test/CodeCompletion/signatures-crash.cpp new file mode 100644 index 0000000000000..c58ae0cc2fd93 --- /dev/null +++ b/test/CodeCompletion/signatures-crash.cpp @@ -0,0 +1,15 @@ +struct map { + void find(int); + void find(); +}; + +int main() { + map *m; + m->find(10); + // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:8: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:13:15 %s -o - | FileCheck %s +} |