Roll r96559 forward again, adding libLLVM-2.7svn.so to LLVM. This links 3 of
[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
6 include "llvm/CompilerDriver/Common.td"
7
8 // CHECK: Hook(const char* Arg0, const char* Arg1, const char* Arg2);
9 // CHECK: "/path"
10 // CHECK: std::getenv("VARIABLE")
11 // CHECK: "/2path"
12
13 def dummy_tool : Tool<[
14 (command "$CALL(Hook, 'Arg1',   'Arg2', 'Arg3 Arg3Cont')/path arg1 $ENV(VARIABLE)/2path arg2"),
15 (in_language "dummy"),
16 (out_language "dummy")
17 ]>;
18
19 def DummyGraph : CompilationGraph<[SimpleEdge<"root", "dummy_tool">]>;