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: grep cl::multi_val(2) %t | count 1
6 include "llvm/CompilerDriver/Common.td"
8 def OptList : OptionList<[
9 (prefix_list_option "foo", (multi_val 2)),
10 (parameter_list_option "baz", (multi_val 2), (extern))]>;
12 def dummy_tool : Tool<[
13 (cmd_line "dummy_cmd"),
14 (in_language "dummy"),
15 (out_language "dummy"),
17 (not_empty "foo"), (forward_as "foo", "bar"),
18 (not_empty "baz"), (forward "baz")))
21 def DummyGraph : CompilationGraph<[SimpleEdge<"root", "dummy_tool">]>;