Speculatively revert r108429 to fix the clang self-host.
[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: FileCheck -input-file %t %s
4 // RUN: %compile_cxx -fexceptions -x c++ %t
5 // XFAIL: vg_leak
6
7 include "llvm/CompilerDriver/Common.td"
8
9 // CHECK: Hook(const char* Arg0, const char* Arg1, const char* Arg2);
10 // CHECK: "/path"
11 // CHECK: std::getenv("VARIABLE")
12 // CHECK: "/2path"
13
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 ]>;
19
20 def DummyGraph : CompilationGraph<[SimpleEdge<"root", "dummy_tool">]>;