brintos

brintos / llvm-project-archived public Read only

0
0
Text · 646 B · e865ef3 Raw
19 lines · cpp
1// RUN: %clang_cc1 -templight-dump %s 2>&1 | FileCheck %s2 3template <class T>4struct 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'$}}18foo<int> x;19