Speculatively revert r108429 to fix the clang self-host.
[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 %p/../../include --gen-llvmc %s -o %t
4 // RUN: FileCheck -input-file %t %s
5 // RUN: %compile_cxx -fexceptions -x c++ %t
6 // XFAIL: vg_leak
7
8 include "llvm/CompilerDriver/Common.td"
9
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), (extern))]>;
14
15 def 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
24 def DummyGraph : CompilationGraph<[SimpleEdge<"root", "dummy_tool">]>;