• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Check that multivalued options work.
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
7
8include "llvm/CompilerDriver/Common.td"
9
10def OptList : OptionList<[
11    // CHECK: cl::multi_val(2)
12    (prefix_list_option "foo", (multi_val 2)),
13    (parameter_list_option "baz", (multi_val 2))]>;
14
15def dummy_tool : Tool<[
16(command "dummy_cmd"),
17(in_language "dummy"),
18(out_language "dummy"),
19(actions (case
20         (not_empty "foo"), (forward_as "foo", "bar"),
21         (not_empty "baz"), (forward "baz")))
22]>;
23
24def DummyGraph : CompilationGraph<[(edge "root", "dummy_tool")]>;
25