view clang/test/CodeCompletion/signatures-crash.cpp @ 180:680fa57a2f20

fix compile errors.
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sat, 30 May 2020 17:44:06 +0900
parents 1d019706d866
children 1f2b6ac9f198
line wrap: on
line source

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
}