2011-10-06 21:39:59 +08:00
|
|
|
// RUN llvm-tblgen %s | FileCheck %s
|
2011-10-01 04:59:51 +08:00
|
|
|
|
2011-10-06 21:39:59 +08:00
|
|
|
// RUN: llvm-tblgen %s | grep {foo} | count 1
|
2011-10-01 04:59:51 +08:00
|
|
|
|
|
|
|
class Base<string t> {
|
|
|
|
string text = t;
|
|
|
|
}
|
|
|
|
|
|
|
|
class Derived<list<list<string>> thetext> : Base<thetext[0][0]>;
|
|
|
|
|
|
|
|
def FOO : Derived<[["foo"]]>;
|
|
|
|
|
|
|
|
// CHECK: text = "foo"
|