Generalize getFieldType to work on all TypedInits. Add a couple of testcases from
[oota-llvm.git] / test / TableGen / FieldAccess.td
1 // RUN: tblgen %s
2 class Bla<string t>
3 {
4   string blu = t;
5 }
6
7 class Bli<Bla t>
8 {
9   Bla bla = t;
10 }
11
12 def a : Bli<Bla<"">>;
13 def b : Bla<!cast<Bla>(a.bla).blu>; // works
14 def c : Bla<a.bla.blu>; // doesn't work: Cannot access field 'blu' of value 'a.bla'