Mercurial > hg > CbC > CbC_llvm
comparison llvm/test/TableGen/foreach-leak.td @ 236:c4bab56944e8 llvm-original
LLVM 16
author | kono |
---|---|
date | Wed, 09 Nov 2022 17:45:10 +0900 |
parents | 1d019706d866 |
children |
comparison
equal
deleted
inserted
replaced
232:70dce7da266c | 236:c4bab56944e8 |
---|---|
5 // CHECK: list<int> ret = !foreach(a, | 5 // CHECK: list<int> ret = !foreach(a, |
6 | 6 |
7 // CHECK: --- Defs --- | 7 // CHECK: --- Defs --- |
8 | 8 |
9 // CHECK: def C0 { | 9 // CHECK: def C0 { |
10 // CHECK: list<list<int>> ret = {{\[}}[1, 2, 3], [1, 2, 3]]; | 10 // CHECK{LITERAL}: list<list<int>> ret = [[1, 2, 3], [1, 2, 3]]; |
11 // CHECK: } | 11 // CHECK: } |
12 | 12 |
13 // The variable name 'a' is used both in the "inner" and in the "outer" foreach. | 13 // The variable name 'a' is used both in the "inner" and in the "outer" foreach. |
14 // The test ensure that the inner declaration of 'a' properly shadows the outer | 14 // The test ensure that the inner declaration of 'a' properly shadows the outer |
15 // one. | 15 // one. |