Mercurial > hg > CbC > CbC_llvm
comparison llvm/test/TableGen/eqbit.td @ 150:1d019706d866
LLVM10
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 15:10:13 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
147:c2174574ed3a | 150:1d019706d866 |
---|---|
1 // RUN: llvm-tblgen %s | FileCheck %s | |
2 // XFAIL: vg_leak | |
3 | |
4 // CHECK-LABEL: def X { | |
5 // CHECK: int a = 6; | |
6 // CHECK: int c = 5; | |
7 // CHECK: } | |
8 | |
9 // CHECK-LABEL: def Y { | |
10 // CHECK: int a = 5; | |
11 // CHECK: int c = 6; | |
12 // CHECK: } | |
13 | |
14 class A<bit b = 1> { | |
15 int a = !if(!eq(b, 1), 5, 6); | |
16 int c = !if(!ne(b, 1), 5, 6); | |
17 } | |
18 | |
19 def X : A<0>; | |
20 def Y : A; |