Validate the generated C++ code in llvmc tests.
[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 // RUN: %compile_cxx -fexceptions -x c++ %t
6
7 include "llvm/CompilerDriver/Common.td"
8
9 def OptList : OptionList<[(parameter_option "dummy", (extern))]>;
10
11 def dummy_tool : Tool<[
12 (cmd_line "dummy_cmd $INFILE"),
13 (in_language "dummy"),
14 (out_language "dummy"),
15 (actions (case
16          (not_empty "dummy"), (forward_as "dummy", "unique_name")))
17 ]>;
18
19 def DummyGraph : CompilationGraph<[SimpleEdge<"root", "dummy_tool">]>;