PowerPC inline asm was emitting two output operands
[oota-llvm.git] / test / LLVMC / MultiValuedOption.td
1 // Check that multivalued options work.
2 // The dummy tool and graph are required to silence warnings.
3 // RUN: tblgen -I $srcroot/include --gen-llvmc %s -o %t
4 // RUN: grep cl::multi_val(2) %t | count 1
5
6 include "llvm/CompilerDriver/Common.td"
7
8 def OptList : OptionList<[
9     (prefix_list_option "foo", (multi_val 2)),
10     (parameter_list_option "baz", (multi_val 2), (extern))]>;
11
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 ]>;
20
21 def DummyGraph : CompilationGraph<[SimpleEdge<"root", "dummy_tool">]>;