| 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-memoization.cpp:4:8'}} |
| 11 |
// CHECK: {{^poi:[ ]+'.*templight-memoization.cpp:18:10'$}} |
| 12 |
// CHECK-LABEL: {{^---$}} |
| 13 |
// CHECK: {{^name:[ ]+'foo<int>'$}} |
| 14 |
// CHECK: {{^kind:[ ]+TemplateInstantiation$}} |
| 15 |
// CHECK: {{^event:[ ]+End$}} |
| 16 |
// CHECK: {{^orig:[ ]+'.*templight-memoization.cpp:4:8'}} |
| 17 |
// CHECK: {{^poi:[ ]+'.*templight-memoization.cpp:18:10'$}} |
| 18 |
foo<int> x; |
| 19 |
|
| 20 |
// CHECK-LABEL: {{^---$}} |
| 21 |
// CHECK-LABEL: {{^---$}} |
| 22 |
// CHECK-LABEL: {{^---$}} |
| 23 |
// CHECK-LABEL: {{^---$}} |
| 24 |
// CHECK-LABEL: {{^---$}} |
| 25 |
// CHECK-LABEL: {{^---$}} |
| 26 |
// CHECK-LABEL: {{^---$}} |
| 27 |
// CHECK-LABEL: {{^---$}} |
| 28 |
// CHECK-LABEL: {{^---$}} |
| 29 |
|
| 30 |
// CHECK: {{^name:[ ]+'foo<int>'$}} |
| 31 |
// CHECK: {{^kind:[ ]+Memoization$}} |
| 32 |
// CHECK: {{^event:[ ]+Begin$}} |
| 33 |
// CHECK: {{^orig:[ ]+'.*templight-memoization.cpp:4:8'}} |
| 34 |
// CHECK: {{^poi:[ ]+'.*templight-memoization.cpp:41:10'$}} |
| 35 |
// CHECK-LABEL: {{^---$}} |
| 36 |
// CHECK: {{^name:[ ]+'foo<int>'$}} |
| 37 |
// CHECK: {{^kind:[ ]+Memoization$}} |
| 38 |
// CHECK: {{^event:[ ]+End$}} |
| 39 |
// CHECK: {{^orig:[ ]+'.*templight-memoization.cpp:4:8'}} |
| 40 |
// CHECK: {{^poi:[ ]+'.*templight-memoization.cpp:41:10'$}} |
| 41 |
foo<int> y; |
| 42 |
|