llvm-6502/test/LLVMC/ExternOptions.td
Duncan Sands bc15f242d5 Revert commit 94666 (ddunbar) [Suppress clang warning about unused arguments].
It causes g++ to complain: unrecognized option '-Qunused-arguments'


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94670 91177308-0d34-0410-b5e6-96231b3b80d8
2010-01-27 10:08:08 +00:00

26 lines
857 B
TableGen

// Check that extern options work.
// The dummy tool and graph are required to silence warnings.
// RUN: tblgen -I %p/../../include --gen-llvmc %s -o %t
// RUN: FileCheck -input-file %t %s
// RUN: %compile_cxx -fexceptions -x c++ %t
include "llvm/CompilerDriver/Common.td"
// CHECK: extern cl::opt<bool> AutoGeneratedSwitch_Wall
def OptList : OptionList<[(switch_option "Wall", (extern)),
(parameter_option "std", (extern)),
(prefix_list_option "L", (extern))]>;
def dummy_tool : Tool<[
(cmd_line "dummy_cmd $INFILE"),
(in_language "dummy"),
(out_language "dummy"),
(actions (case
(switch_on "Wall"), (stop_compilation),
(not_empty "std"), (stop_compilation),
(not_empty "L"), (stop_compilation)))
]>;
def DummyGraph : CompilationGraph<[SimpleEdge<"root", "dummy_tool">]>;