2013-01-25 22:49:08 +08:00
|
|
|
// RUN: llvm-tblgen %s | FileCheck %s
|
2013-11-10 22:26:08 +08:00
|
|
|
// XFAIL: vg_leak
|
2013-01-25 22:49:08 +08:00
|
|
|
|
|
|
|
class Int<int value> {
|
|
|
|
int Value = value;
|
|
|
|
}
|
|
|
|
|
|
|
|
def v1024 : Int<1024>;
|
2013-01-26 04:29:25 +08:00
|
|
|
// CHECK: def v1024
|
2013-01-25 22:49:08 +08:00
|
|
|
// CHECK: Value = 1024
|
|
|
|
|
|
|
|
def v1025 : Int<!add(v1024.Value, 1)>;
|
2013-01-26 04:29:25 +08:00
|
|
|
// CHECK: def v1025
|
2013-01-25 22:49:08 +08:00
|
|
|
// CHECK: Value = 1025
|
|
|
|
|
|
|
|
def v2048 : Int<!add(v1024.Value, v1024.Value)>;
|
2013-01-26 04:29:25 +08:00
|
|
|
// CHECK: def v2048
|
2013-01-25 22:49:08 +08:00
|
|
|
// CHECK: Value = 2048
|
|
|
|
|