blob: d38675c55e03c65b1ce91f344d24f845c44eb218 [file] [log] [blame]
Mikhail Glushenkovd652ea02008-12-07 16:41:50 +00001// 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
5include "llvm/CompilerDriver/Common.td"
6
7def OptList : OptionList<[(extern_switch "Wall"),
8 (extern_parameter "std"), (extern_list "L")]>;
9
10def 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
20def DummyGraph : CompilationGraph<[SimpleEdge<"root", "dummy_tool">]>;