Add a way to look up a type by it's name in a module.
[oota-llvm.git] / test / TableGen / AnonDefinitionOnDemand.td
1 // RUN: tblgen < %s
2
3 class foo<int X> { int THEVAL = X; }
4 def foo_imp : foo<1>;
5
6 def x {
7   foo Y = foo_imp;    // This works.
8 }
9
10 def X {
11   foo Y = foo<1>;     // This should work too, synthesizing a new foo<1>.
12 }