blob: b6c4c93cb09621a61fd352baffb19d258ad69c46 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
// RUN: llvm-tblgen %s | FileCheck %s
// XFAIL: vg_leak
class Struct<int i> {
int I = !shl(i, 1);
int J = !shl(I, 1);
}
class Class<Struct s> {
int Class_J = s.J;
}
multiclass MultiClass<int i> {
def Def : Class<Struct<i>>;
// CHECK: Class_J = 8
// CHECK-NOT: Class_J = !shl(I, 1)
}
defm Defm : MultiClass<2>;
|