Remove NumberHack entirely.
[oota-llvm.git] / test / LLVMC / Init.td
index 3d68d050ee967795013eee63b054634d41dc0bf0..05209bf61acae9bbfaf3afa40fae8255ca358692 100644 (file)
@@ -1,18 +1,20 @@
 // Check that (init true/false) and (init "str") work.
 // RUN: tblgen -I %p/../../include --gen-llvmc %s -o %t
-// RUN: grep cl::init(\\"some-string\\") %t | count 1
-// RUN: grep cl::init(true) %t | count 1
+// RUN: FileCheck -input-file %t %s
 // RUN: %compile_cxx -fexceptions -x c++ %t
+// XFAIL: vg_leak
 
 include "llvm/CompilerDriver/Common.td"
 
 def OptList : OptionList<[
+// CHECK: cl::init(true)
 (switch_option "dummy1", (help "none"), (init true)),
+// CHECK: cl::init("some-string")
 (parameter_option "dummy2", (help "none"), (init "some-string"))
 ]>;
 
 def dummy_tool : Tool<[
-(cmd_line "dummy_cmd $INFILE"),
+(command "dummy_cmd"),
 (in_language "dummy_lang"),
 (out_language "dummy_lang"),
 (actions (case