mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-28 14:36:34 +00:00
903408c475
Amaury Pouly. llvm-svn: 113010
15 lines
249 B
TableGen
15 lines
249 B
TableGen
// RUN: tblgen %s
|
|
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>; // works
|
|
def c : Bla<a.bla.blu>; // doesn't work: Cannot access field 'blu' of value 'a.bla'
|