Heuristic: If the number of operands in the alias are more than the number of
[llvm/stm8.git] / test / LLVMC / HookWithArguments.td
blobbbba2e98459995431163a1034f41153ffb466147
1 // Check that hooks with arguments work.
2 // RUN: tblgen -I %p/../../include --gen-llvmc %s -o %t
3 // RUN: FileCheck -input-file %t %s
4 // RUN: %compile_cxx %t
5 // XFAIL: vg_leak
7 include "llvm/CompilerDriver/Common.td"
9 // CHECK: Hook(const char* Arg0, const char* Arg1, const char* Arg2);
10 // CHECK: "/path"
11 // CHECK: std::getenv("VARIABLE")
12 // CHECK: "/2path"
14 def dummy_tool : Tool<[
15 (command "$CALL(Hook, 'Arg1',   'Arg2', 'Arg3 Arg3Cont')/path arg1 $ENV(VARIABLE)/2path arg2"),
16 (in_language "dummy"),
17 (out_language "dummy")
18 ]>;
20 def DummyGraph : CompilationGraph<[(edge "root", "dummy_tool")]>;