Rewrite tests to not use Tcl substitution.
[oota-llvm.git] / test / LLVMC / HookWithArguments.td
1 // Check that hooks with arguments work.
2 // RUN: tblgen -I %p/../../include --gen-llvmc %s -o %t
3 // RUN: grep {Hook(const char\\* Arg0, const char\\* Arg1, const char\\* Arg2);} %t | count 1
4 // RUN: grep "/path" %t | count 1
5 // RUN: grep "VARIABLE" %t | count 1
6 // RUN: grep "/2path" %t | count 1
7
8 include "llvm/CompilerDriver/Common.td"
9
10 def dummy_tool : Tool<[
11 (cmd_line "$CALL(Hook, 'Arg1',   'Arg2', 'Arg3 Arg3Cont')/path arg1 $ENV(VARIABLE)/2path arg2 $INFILE"),
12 (in_language "dummy"),
13 (out_language "dummy")
14 ]>;
15
16 def DummyGraph : CompilationGraph<[SimpleEdge<"root", "dummy_tool">]>;