aboutsummaryrefslogtreecommitdiff
path: root/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
commit1f12c47ae90c03633496d96e79a61762097a4681 (patch)
tree7a6b7c0cc8ac595d79b2b132046fac4d99c5be59 /test/Index/index-file.cpp
parentd9bd83e0af720733e7564b125c1c9d495318b9e2 (diff)
[libclang] Fix a crash with invalid code, while skip function bodies is enabled.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@175860 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Index/index-file.cpp')
-rw-r--r--test/Index/index-file.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/Index/index-file.cpp b/test/Index/index-file.cpp
index bf2d62c556..7634c0db86 100644
--- a/test/Index/index-file.cpp
+++ b/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