1 // RUN: c-index-test core -print-source-symbols -- %s -target x86_64-apple-macosx10.7 | FileCheck %s 2 3 template <typename TemplArg> 4 class TemplCls { 5 // CHECK: [[@LINE-1]]:7 | class/C++ | TemplCls | c:@ST>1#T@TemplCls | <no-cgname> | Def | rel: 0 6 TemplCls(int x); 7 // CHECK: [[@LINE-1]]:3 | constructor/C++ | TemplCls | c:@ST>1#T@TemplCls@F@TemplCls#I# | <no-cgname> | Decl,RelChild | rel: 1 8 // CHECK-NEXT: RelChild | TemplCls | c:@ST>1#T@TemplCls 9 }; 10 11 template <typename T> 12 class BT { 13 struct KLR { 14 int idx; 15 }; 16 17 // CHECK: [[@LINE+1]]:7 | instance-method/C++ | foo | 18 KLR foo() { 19 return { .idx = 0 }; // Make sure this doesn't trigger a crash. 20 } 21 }; 22