diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2018-07-28 11:06:01 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2018-07-28 11:06:01 +0000 |
| commit | 486754660bb926339aefcf012a3f848592babb8b (patch) | |
| tree | ecdbc446c9876f4f120f701c243373cd3cb43db3 /test/Templight/templight-memoization.cpp | |
| parent | 55e6d896ad333f07bb3b1ba487df214fc268a4ab (diff) | |
Notes
Diffstat (limited to 'test/Templight/templight-memoization.cpp')
| -rw-r--r-- | test/Templight/templight-memoization.cpp | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/test/Templight/templight-memoization.cpp b/test/Templight/templight-memoization.cpp new file mode 100644 index 000000000000..ddf2447834fd --- /dev/null +++ b/test/Templight/templight-memoization.cpp @@ -0,0 +1,42 @@ +// RUN: %clang_cc1 -templight-dump %s 2>&1 | FileCheck %s + +template <class T> +struct foo {}; + +// CHECK-LABEL: {{^---$}} +// CHECK: {{^name:[ ]+'foo<int>'$}} +// CHECK: {{^kind:[ ]+TemplateInstantiation$}} +// CHECK: {{^event:[ ]+Begin$}} +// CHECK: {{^orig:[ ]+'.*templight-memoization.cpp:4:8'}} +// CHECK: {{^poi:[ ]+'.*templight-memoization.cpp:18:10'$}} +// CHECK-LABEL: {{^---$}} +// CHECK: {{^name:[ ]+'foo<int>'$}} +// CHECK: {{^kind:[ ]+TemplateInstantiation$}} +// CHECK: {{^event:[ ]+End$}} +// CHECK: {{^orig:[ ]+'.*templight-memoization.cpp:4:8'}} +// CHECK: {{^poi:[ ]+'.*templight-memoization.cpp:18:10'$}} +foo<int> x; + +// CHECK-LABEL: {{^---$}} +// CHECK-LABEL: {{^---$}} +// CHECK-LABEL: {{^---$}} +// CHECK-LABEL: {{^---$}} +// CHECK-LABEL: {{^---$}} +// CHECK-LABEL: {{^---$}} +// CHECK-LABEL: {{^---$}} +// CHECK-LABEL: {{^---$}} +// CHECK-LABEL: {{^---$}} + +// CHECK: {{^name:[ ]+'foo<int>'$}} +// CHECK: {{^kind:[ ]+Memoization$}} +// CHECK: {{^event:[ ]+Begin$}} +// CHECK: {{^orig:[ ]+'.*templight-memoization.cpp:4:8'}} +// CHECK: {{^poi:[ ]+'.*templight-memoization.cpp:41:10'$}} +// CHECK-LABEL: {{^---$}} +// CHECK: {{^name:[ ]+'foo<int>'$}} +// CHECK: {{^kind:[ ]+Memoization$}} +// CHECK: {{^event:[ ]+End$}} +// CHECK: {{^orig:[ ]+'.*templight-memoization.cpp:4:8'}} +// CHECK: {{^poi:[ ]+'.*templight-memoization.cpp:41:10'$}} +foo<int> y; + |
