aboutsummaryrefslogtreecommitdiffstats
path: root/test/LLVMC/HookWithInFile.td
diff options
context:
space:
mode:
Diffstat (limited to 'test/LLVMC/HookWithInFile.td')
-rw-r--r--test/LLVMC/HookWithInFile.td3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/LLVMC/HookWithInFile.td b/test/LLVMC/HookWithInFile.td
index 7fb3df1..e15e43c 100644
--- a/test/LLVMC/HookWithInFile.td
+++ b/test/LLVMC/HookWithInFile.td
@@ -1,11 +1,12 @@
// 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
include "llvm/CompilerDriver/Common.td"
def dummy_tool : Tool<[
+// CHECK: Hook(inFile.c_str())
(cmd_line "$CALL(Hook, '$INFILE')/path $INFILE"),
(in_language "dummy"),
(out_language "dummy")