You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
273 B
17 lines
273 B
4 months ago
|
// RUN: llvm-tblgen %s
|
||
|
// XFAIL: vg_leak
|
||
|
|
||
|
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'
|