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