1 // Check that forward_value works.
2 // The dummy tool and graph are required to silence warnings.
3 // RUN: tblgen -I %p/../../include --gen-llvmc %s -o %t
4 // RUN: FileCheck -input-file %t %s
5 // RUN: %compile_cxx -fexceptions -x c++ %t
7 include "llvm/CompilerDriver/Common.td"
9 def OptList : OptionList<[(parameter_option "a", (extern)),
10 (prefix_list_option "b", (extern))]>;
12 def dummy_tool : Tool<[
13 (cmd_line "dummy_cmd $INFILE"),
14 (in_language "dummy"),
15 (out_language "dummy"),
17 // CHECK: vec.push_back(AutoGeneratedParameter_a)
18 (not_empty "a"), (forward_value "a"),
19 // CHECK: std::copy(AutoGeneratedList_b.begin()
20 (not_empty "b"), (forward_value "b")))
23 def DummyGraph : CompilationGraph<[SimpleEdge<"root", "dummy_tool">]>;