1 // Check that extern options 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: grep {extern .* AutoGeneratedSwitch_Wall} %t
6 include "llvm/CompilerDriver/Common.td"
8 def OptList : OptionList<[(switch_option "Wall", (extern)),
9 (parameter_option "std", (extern)),
10 (prefix_list_option "L", (extern))]>;
12 def dummy_tool : Tool<[
13 (cmd_line "dummy_cmd"),
14 (in_language "dummy"),
15 (out_language "dummy"),
17 (switch_on "Wall"), (stop_compilation),
18 (not_empty "std"), (stop_compilation),
19 (not_empty "L"), (stop_compilation)))
22 def DummyGraph : CompilationGraph<[SimpleEdge<"root", "dummy_tool">]>;