When removing a function from the function set and adding it to deferred, we
[llvm.git] / test / LLVMC / ForwardValue.td
bloba42a3f06ec3d7d235e9ed9dca487659ef19a9f23
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 %t
6 // XFAIL: vg_leak
8 include "llvm/CompilerDriver/Common.td"
10 def OptList : OptionList<[(parameter_option "a", (help "dummy")),
11                           (prefix_list_option "b", (help "dummy"))]>;
13 def dummy_tool : Tool<[
14 (command "dummy_cmd"),
15 (in_language "dummy"),
16 (out_language "dummy"),
17 (actions (case
18          // CHECK: , autogenerated::Parameter_a));
19          (not_empty "a"), (forward_value "a"),
20          // CHECK: B = autogenerated::List_b.begin()
21          (not_empty "b"), (forward_value "b")))
22 ]>;
24 def DummyGraph : CompilationGraph<[(edge "root", "dummy_tool")]>;