Mikhail Glushenkov | d652ea0 | 2008-12-07 16:41:50 +0000 | [diff] [blame^] | 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">]>; |