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