Fix a FIXME about the format and add a test.
[oota-llvm.git] / test / TableGen / lisp.td
index 3e392fda84ff3ba139e7c1eab8063655b964c838..efe00022f51d0f8cc1ea0d94540caad43b6a1eeb 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: tblgen %s | grep {}
+// RUN: llvm-tblgen %s | grep ""
 
 class List<list<string> n> {
   list<string> names = n;
@@ -14,7 +14,7 @@ class CDR<list<string> r, int n> {
 }
 
 class NameList<list<string> Names> :
-  List<Names>, CAR<!car(Names)>, CDR<!cdr(Names), !null(!cdr(Names))>;
+  List<Names>, CAR<!head(Names)>, CDR<!tail(Names), !empty(!tail(Names))>;
 
 def Three : NameList<["Tom", "Dick", "Harry"]>;