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