1 // RUN: %clang_cc1 -templight-dump %s 2>&1 | FileCheck %s
2 
3 template <class T>
4 struct foo {};
5 
6 // CHECK-LABEL: {{^---$}}
7 // CHECK: {{^name:[ ]+'foo<int>'$}}
8 // CHECK: {{^kind:[ ]+TemplateInstantiation$}}
9 // CHECK: {{^event:[ ]+Begin$}}
10 // CHECK: {{^orig:[ ]+'.*templight-one-instantiation.cpp:4:8'}}
11 // CHECK: {{^poi:[ ]+'.*templight-one-instantiation.cpp:18:10'$}}
12 // CHECK-LABEL: {{^---$}}
13 // CHECK: {{^name:[ ]+'foo<int>'$}}
14 // CHECK: {{^kind:[ ]+TemplateInstantiation$}}
15 // CHECK: {{^event:[ ]+End$}}
16 // CHECK: {{^orig:[ ]+'.*templight-one-instantiation.cpp:4:8'}}
17 // CHECK: {{^poi:[ ]+'.*templight-one-instantiation.cpp:18:10'$}}
18 foo<int> x;
19