Convert llvmc tests to FileCheck.
[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
7 include "llvm/CompilerDriver/Common.td"
8
9 def OptList : OptionList<[
10     // CHECK: cl::OneOrMore
11     (prefix_list_option "foo", (one_or_more)),
12     // CHECK: cl::Optional
13     (parameter_list_option "baz", (optional))]>;
14
15 def dummy_tool : Tool<[
16 (cmd_line "dummy_cmd $INFILE"),
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">]>;