mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-06 21:05:51 +00:00
20 lines
324 B
TableGen
20 lines
324 B
TableGen
|
// 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>;
|