mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-11 13:37:07 +00:00
cbc13312c3
llvm-svn: 215087
14 lines
214 B
TableGen
14 lines
214 B
TableGen
// RUN: llvm-tblgen %s | FileCheck %s
|
|
// XFAIL: vg_leak
|
|
// CHECK: a = 6
|
|
// CHECK: a = 5
|
|
|
|
class A<bit b = 1> {
|
|
int a = !if(b, 5, 6);
|
|
bit c = !if(b, 0, 1);
|
|
bits<1> d = !if(b, 0, 1);
|
|
}
|
|
|
|
def X : A<0>;
|
|
def Y : A;
|