1using MyTypeAlias = int;
2
3extern "C" {
4  template < typename T > *Allocate() { }
5}
6
7// rdar://14063074
8namespace rdar14063074 {
9template <typename T>
10struct TS {};
11struct TS<int> {};
12
13template <typename T>
14void tfoo() {}
15void tfoo<int>() {}
16}
17
18// RUN: c-index-test -index-file %s > %t
19// RUN: FileCheck %s -input-file=%t
20
21// CHECK: [indexDeclaration]: kind: type-alias | name: MyTypeAlias | {{.*}} | loc: 1:7
22// CHECK: [indexDeclaration]: kind: struct-template-spec | name: TS | {{.*}} | loc: 11:8
23// CHECK: [indexDeclaration]: kind: function-template-spec | name: tfoo | {{.*}} | loc: 15:6
24