summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeCompletion
diff options
context:
space:
mode:
authorIlya Biryukov <ibiryukov@google.com>2017-09-08 13:36:38 +0000
committerIlya Biryukov <ibiryukov@google.com>2017-09-08 13:36:38 +0000
commitcbea95dd9551c4388af16ef3808843707aecdd21 (patch)
treebe7a5718ce52a6baa7704843014f9c3d966106e9 /clang/test/CodeCompletion
parent7ac3825afbd94a7f266c5063d5b38654d9da1f88 (diff)
downloadbcm5719-llvm-cbea95dd9551c4388af16ef3808843707aecdd21.tar.gz
bcm5719-llvm-cbea95dd9551c4388af16ef3808843707aecdd21.zip
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
Diffstat (limited to 'clang/test/CodeCompletion')
-rw-r--r--clang/test/CodeCompletion/crash-func-init.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/CodeCompletion/crash-func-init.cpp b/clang/test/CodeCompletion/crash-func-init.cpp
new file mode 100644
index 00000000000..6d84b843ea1
--- /dev/null
+++ b/clang/test/CodeCompletion/crash-func-init.cpp
@@ -0,0 +1,4 @@
+int (*foo(int a))(flo
+// RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:1:21 %s -o - \
+// RUN: | FileCheck %s
+// CHECK: COMPLETION: float
OpenPOWER on IntegriCloud