• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// RUN: llvm-tblgen %s | grep {}
2// XFAIL: vg_leak
3
4class List<list<string> n> {
5  list<string> names = n;
6}
7
8class CAR<string e> {
9  string element = e;
10}
11
12class CDR<list<string> r, int n> {
13  list<string> rest = r;
14  int null = n;
15}
16
17class NameList<list<string> Names> :
18  List<Names>, CAR<!head(Names)>, CDR<!tail(Names), !empty(!tail(Names))>;
19
20def Three : NameList<["Tom", "Dick", "Harry"]>;
21
22def One : NameList<["Jeffrey Sinclair"]>;
23