Use ignore & grep instead of XFAIL.
[oota-llvm.git] / test / LLVMC / ExternOptions.td
1 // Check that extern options work.
2 // The dummy tool and graph are required to silence warnings.
3 // RUN: tblgen -I $srcroot/include --gen-llvmc %s | grep {extern .* AutoGeneratedSwitch_Wall}
4
5 include "llvm/CompilerDriver/Common.td"
6
7 def OptList : OptionList<[(switch_option "Wall", (extern)),
8                           (parameter_option "std", (extern)),
9                           (prefix_list_option "L", (extern))]>;
10
11 def dummy_tool : Tool<[
12 (cmd_line "dummy_cmd"),
13 (in_language "dummy"),
14 (out_language "dummy"),
15 (actions (case
16          (switch_on "Wall"), (stop_compilation),
17          (not_empty "std"), (stop_compilation),
18          (not_empty "L"), (stop_compilation)))
19 ]>;
20
21 def DummyGraph : CompilationGraph<[SimpleEdge<"root", "dummy_tool">]>;