llvm-project/clang/test/CodeCompletion/crash-func-init.cpp
Ilya Biryukov cbea95dd95 Fixed a crash in code completion.
Summary: The crash occured when FunctionDecl was parsed with an initializer.

Reviewers: bkramer, klimek, francisco.lopes

Reviewed By: bkramer

Subscribers: cfe-commits

Differential Revision: https://reviews.llvm.org/D37382

llvm-svn: 312788
2017-09-08 13:36:38 +00:00

5 lines
155 B
C++

int (*foo(int a))(flo
// RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:1:21 %s -o - \
// RUN: | FileCheck %s
// CHECK: COMPLETION: float