summaryrefslogtreecommitdiffstats
path: root/llvm/test/LLVMC/HookWithArguments.td
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/LLVMC/HookWithArguments.td')
-rw-r--r--llvm/test/LLVMC/HookWithArguments.td10
1 files changed, 6 insertions, 4 deletions
diff --git a/llvm/test/LLVMC/HookWithArguments.td b/llvm/test/LLVMC/HookWithArguments.td
index 909dc8bf9b4..ba0bbe10d37 100644
--- a/llvm/test/LLVMC/HookWithArguments.td
+++ b/llvm/test/LLVMC/HookWithArguments.td
@@ -1,13 +1,15 @@
// Check that hooks with arguments work.
// RUN: tblgen -I %p/../../include --gen-llvmc %s -o %t
-// RUN: grep {Hook(const char\\* Arg0, const char\\* Arg1, const char\\* Arg2);} %t | count 1
-// RUN: grep "/path" %t | count 1
-// RUN: grep "VARIABLE" %t | count 1
-// RUN: grep "/2path" %t | count 1
+// RUN: FileCheck -input-file %t %s
// RUN: %compile_cxx -fexceptions -x c++ %t
include "llvm/CompilerDriver/Common.td"
+// CHECK: Hook(const char* Arg0, const char* Arg1, const char* Arg2);
+// CHECK: std::getenv("VARIABLE")
+// CHECK: "/2path"
+// CHECK: "/path"
+
def dummy_tool : Tool<[
(cmd_line "$CALL(Hook, 'Arg1', 'Arg2', 'Arg3 Arg3Cont')/path arg1 $ENV(VARIABLE)/2path arg2 $INFILE"),
(in_language "dummy"),
OpenPOWER on IntegriCloud