Speculatively revert r108429 to fix the clang self-host.
[oota-llvm.git] / test / LLVMC / OneOrMore.td
1 // Check that (one_or_more) and (zero_or_one) properties 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::OneOrMore
12     (prefix_list_option "foo", (one_or_more)),
13     // CHECK: cl::Optional
14     (parameter_list_option "baz", (optional))]>;
15
16 def dummy_tool : Tool<[
17 (command "dummy_cmd"),
18 (in_language "dummy"),
19 (out_language "dummy"),
20 (actions (case
21          (not_empty "foo"), (forward_as "foo", "bar"),
22          (not_empty "baz"), (forward "baz")))
23 ]>;
24
25 def DummyGraph : CompilationGraph<[SimpleEdge<"root", "dummy_tool">]>;