summaryrefslogtreecommitdiffstats
path: root/clang/test/Index/index-file.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2013-02-22 04:11:06 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2013-02-22 04:11:06 +0000
commit4431918f40a252d5182028c62002a1a7fd4b88c7 (patch)
tree982399b767fbb7b3cc2c57a735d83d391f5b97c7 /clang/test/Index/index-file.cpp
parent62eae089cacccfdcca473aa5400a88dbc1b9fe0d (diff)
downloadbcm5719-llvm-4431918f40a252d5182028c62002a1a7fd4b88c7.tar.gz
bcm5719-llvm-4431918f40a252d5182028c62002a1a7fd4b88c7.zip
[libclang] Fix a crash with invalid code, while skip function bodies is enabled.
llvm-svn: 175860
Diffstat (limited to 'clang/test/Index/index-file.cpp')
-rw-r--r--clang/test/Index/index-file.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/Index/index-file.cpp b/clang/test/Index/index-file.cpp
index bf2d62c5568..7634c0db863 100644
--- a/clang/test/Index/index-file.cpp
+++ b/clang/test/Index/index-file.cpp
@@ -1,5 +1,9 @@
using MyTypeAlias = int;
+extern "C" {
+ template < typename T > *Allocate() { }
+}
+
// RUN: c-index-test -index-file %s > %t
// RUN: FileCheck %s -input-file=%t
OpenPOWER on IntegriCloud