Roll r96559 forward again, adding libLLVM-2.7svn.so to LLVM. This links 3 of
[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 %p/../../include --gen-llvmc %s -o %t
4 // RUN: FileCheck -input-file %t %s
5 // RUN: %compile_cxx -fexceptions -x c++ %t
6
7 include "llvm/CompilerDriver/Common.td"
8
9 // CHECK: extern cl::opt<bool> AutoGeneratedSwitch_Wall
10
11 def OptList : OptionList<[(switch_option "Wall", (extern)),
12                           (parameter_option "std", (extern)),
13                           (prefix_list_option "L", (extern))]>;
14
15 def dummy_tool : Tool<[
16 (command "dummy_cmd"),
17 (in_language "dummy"),
18 (out_language "dummy"),
19 (actions (case
20          (switch_on "Wall"), (stop_compilation),
21          (not_empty "std"), (stop_compilation),
22          (not_empty "L"), (stop_compilation)))
23 ]>;
24
25 def DummyGraph : CompilationGraph<[SimpleEdge<"root", "dummy_tool">]>;