d38675c55e03c65b1ce91f344d24f845c44eb218
[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
4
5 include "llvm/CompilerDriver/Common.td"
6
7 def OptList : OptionList<[(extern_switch "Wall"),
8     (extern_parameter "std"), (extern_list "L")]>;
9
10 def dummy_tool : Tool<[
11 (cmd_line "dummy_cmd"),
12 (in_language "dummy"),
13 (out_language "dummy"),
14 (actions (case
15          (switch_on "Wall"), (stop_compilation),
16          (not_empty "std"), (stop_compilation),
17          (not_empty "L"), (stop_compilation)))
18 ]>;
19
20 def DummyGraph : CompilationGraph<[SimpleEdge<"root", "dummy_tool">]>;