revert a hunk of r82018 that wasn't supposed to go in yet.
[llvm/avr.git] / test / LLVMC / MultiValuedOption.td
blob0272e082be1c6618371d4e9361775fd762ee1d37
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"),
16 (actions (case
17          (not_empty "foo"), (forward_as "foo", "bar"),
18          (not_empty "baz"), (forward "baz")))
19 ]>;
21 def DummyGraph : CompilationGraph<[SimpleEdge<"root", "dummy_tool">]>;