summaryrefslogtreecommitdiffstats
path: root/llvm/test/TableGen/code.td
blob: 1f983e282404cb98549a92987bbde0bba2db7d69 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// RUN: llvm-tblgen %s | FileCheck %s
// XFAIL: vg_leak

// CHECK: --- Defs ---

// TODO: Both of these should result in CodeInits, i.e. print [{...}].
// CHECK: def A0 {
// CHECK:   code Code = "Simple";
// CHECK: }

// CHECK: def B0 {
// CHECK:   code Code = "With paste 7";
// CHECK: }

class A<code c> {
  code Code = c;
}

def A0 : A<"Simple">;

class B<int i> : A<"With paste " # i>;

def B0 : B<7>;
OpenPOWER on IntegriCloud