Remove NumberHack entirely.
[oota-llvm.git] / test / LLVMC / HookWithInFile.td
index 7fb3df1c9a66b2af2ce610dd59be62676a9d0b64..9855dbc5bd9a09529cd4583ff9e24d637ddbd11d 100644 (file)
@@ -1,12 +1,14 @@
 // Check that a hook can be given $INFILE as an argument.
 // RUN: tblgen -I %p/../../include --gen-llvmc %s -o %t
-// RUN: grep Hook\\(inFile.c_str\\(\\)\\) %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 dummy_tool : Tool<[
-(cmd_line "$CALL(Hook, '$INFILE')/path $INFILE"),
+// CHECK: Hook(inFile.c_str())
+(command "$CALL(Hook, '$INFILE')/path"),
 (in_language "dummy"),
 (out_language "dummy")
 ]>;