From 4431918f40a252d5182028c62002a1a7fd4b88c7 Mon Sep 17 00:00:00 2001 From: Argyrios Kyrtzidis Date: Fri, 22 Feb 2013 04:11:06 +0000 Subject: [libclang] Fix a crash with invalid code, while skip function bodies is enabled. llvm-svn: 175860 --- clang/test/Index/index-file.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'clang/test/Index/index-file.cpp') 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 -- cgit v1.2.3