summaryrefslogtreecommitdiffstats
path: root/llvm/test/TableGen/FieldAccess.td
blob: 2427781c14f052e7f095e0805dfd367072b45e2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// RUN: llvm-tblgen %s | FileCheck %s
// XFAIL: vg_leak

// CHECK: --- Defs ---

// CHECK: def a {
// CHECK:   string blu = "";
// CHECK: }

// CHECK: def b {
// CHECK:   string blu = "";
// CHECK: }

// CHECK: def c {
// CHECK:   string blu = "";
// CHECK: }

class Bla<string t>
{
  string blu = t;
}

class Bli<Bla t>
{
  Bla bla = t;
}

def a : Bli<Bla<"">>;
def b : Bla<!cast<Bla>(a.bla).blu>;
def c : Bla<a.bla.blu>;
OpenPOWER on IntegriCloud