Chandler Carruth | 4177e6f | 2012-07-02 12:47:22 +0000 | [diff] [blame] | 1 | // RUN: llvm-tblgen %s | grep "" |
Jeffrey Yasskin | 32989de | 2010-03-20 23:08:45 +0000 | [diff] [blame] | 2 | // XFAIL: vg_leak |
David Greene | 5f9f9ba | 2009-05-14 22:38:31 +0000 | [diff] [blame] | 3 | |
| 4 | class List<list<string> n> { |
| 5 | list<string> names = n; |
| 6 | } |
| 7 | |
| 8 | class CAR<string e> { |
| 9 | string element = e; |
| 10 | } |
| 11 | |
| 12 | class CDR<list<string> r, int n> { |
| 13 | list<string> rest = r; |
| 14 | int null = n; |
| 15 | } |
| 16 | |
| 17 | class NameList<list<string> Names> : |
David Greene | 1434f66 | 2011-01-07 17:05:37 +0000 | [diff] [blame] | 18 | List<Names>, CAR<!head(Names)>, CDR<!tail(Names), !empty(!tail(Names))>; |
David Greene | 5f9f9ba | 2009-05-14 22:38:31 +0000 | [diff] [blame] | 19 | |
| 20 | def Three : NameList<["Tom", "Dick", "Harry"]>; |
| 21 | |
| 22 | def One : NameList<["Jeffrey Sinclair"]>; |