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
8 include "llvm/CompilerDriver/Common.td"
10 def OptList : OptionList<[
11 // CHECK: cl::multi_val(2)
12 (prefix_list_option "foo", (multi_val 2)),
13 (parameter_list_option "baz", (multi_val 2))]>;
15 def dummy_tool : Tool<[
16 (command "dummy_cmd"),
17 (in_language "dummy"),
18 (out_language "dummy"),
20 (not_empty "foo"), (forward_as "foo", "bar"),
21 (not_empty "baz"), (forward "baz")))
24 def DummyGraph : CompilationGraph<[(edge "root", "dummy_tool")]>;