llvm-6502/test/TableGen/ForeachList.td
NAKAMURA Takumi a22657f457 Mark 36 tests as XFAIL:vg_leak in llvm/test/TableGen.
In historical reason, tblgen is not strictly required to be free from memory leaks.
For now, I mark them as XFAIL, they could be fixed, though.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194353 91177308-0d34-0410-b5e6-96231b3b80d8
2013-11-10 14:26:08 +00:00

77 lines
1.4 KiB
TableGen

// RUN: llvm-tblgen %s | FileCheck %s
// XFAIL: vg_leak
class Register<string name, int idx> {
string Name = name;
int Index = idx;
}
foreach i = [0, 1, 2, 3, 4, 5, 6, 7] in {
def R#i : Register<"R"#i, i>;
def F#i : Register<"F"#i, i>;
}
// CHECK: def F0
// CHECK: string Name = "F0";
// CHECK: int Index = 0;
// CHECK: def F1
// CHECK: string Name = "F1";
// CHECK: int Index = 1;
// CHECK: def F2
// CHECK: string Name = "F2";
// CHECK: int Index = 2;
// CHECK: def F3
// CHECK: string Name = "F3";
// CHECK: int Index = 3;
// CHECK: def F4
// CHECK: string Name = "F4";
// CHECK: int Index = 4;
// CHECK: def F5
// CHECK: string Name = "F5";
// CHECK: int Index = 5;
// CHECK: def F6
// CHECK: string Name = "F6";
// CHECK: int Index = 6;
// CHECK: def F7
// CHECK: string Name = "F7";
// CHECK: int Index = 7;
// CHECK: def R0
// CHECK: string Name = "R0";
// CHECK: int Index = 0;
// CHECK: def R1
// CHECK: string Name = "R1";
// CHECK: int Index = 1;
// CHECK: def R2
// CHECK: string Name = "R2";
// CHECK: int Index = 2;
// CHECK: def R3
// CHECK: string Name = "R3";
// CHECK: int Index = 3;
// CHECK: def R4
// CHECK: string Name = "R4";
// CHECK: int Index = 4;
// CHECK: def R5
// CHECK: string Name = "R5";
// CHECK: int Index = 5;
// CHECK: def R6
// CHECK: string Name = "R6";
// CHECK: int Index = 6;
// CHECK: def R7
// CHECK: string Name = "R7";
// CHECK: int Index = 7;