comparison llvm/test/TableGen/size.td @ 150:1d019706d866

LLVM10
author anatofuz
date Thu, 13 Feb 2020 15:10:13 +0900
parents
children 2e18cbf3894f
comparison
equal deleted inserted replaced
147:c2174574ed3a 150:1d019706d866
1 // RUN: llvm-tblgen %s | FileCheck %s
2 // XFAIL: vg_leak
3
4 // CHECK: --- Defs ---
5
6 // CHECK: def A1 {
7 // CHECK: int Val = 0;
8 // CHECK: }
9
10 // CHECK: def A2 {
11 // CHECK: int Val = 3;
12 // CHECK: }
13
14 // CHECK: def B1 {
15 // CHECK: int Val = 0;
16 // CHECK: }
17
18 // CHECK: def B2 {
19 // CHECK: int Val = 2;
20 // CHECK: }
21
22 class A<list<int> L> {
23 int Val = !size(L);
24 }
25
26 class B<list<string> L> {
27 int Val = !size(L);
28 }
29
30 def A1 : A<[]>;
31 def A2 : A<[1, 1, 2]>;
32
33 def B1 : B<[]>;
34 def B2 : B<["a", "b"]>;