Rewrite tests to not use Tcl substitution.
[oota-llvm.git] / test / LLVMC / ForwardAs.td
1 // Check the fix for PR4159.
2 // http://llvm.org/bugs/show_bug.cgi?id=4159
3 // RUN: tblgen -I %p/../../include --gen-llvmc %s -o %t
4 // RUN: grep unique_name %t
5
6 include "llvm/CompilerDriver/Common.td"
7
8 def OptList : OptionList<[(parameter_option "dummy", (extern))]>;
9
10 def dummy_tool : Tool<[
11 (cmd_line "dummy_cmd"),
12 (in_language "dummy"),
13 (out_language "dummy"),
14 (actions (case
15          (not_empty "dummy"), (forward_as "dummy", "unique_name")))
16 ]>;
17
18 def DummyGraph : CompilationGraph<[SimpleEdge<"root", "dummy_tool">]>;