Suppress clang warning about unused arguments.
[oota-llvm.git] / test / LLVMC / ForwardAs.td
1 // Check the fix for PR4159.
2 // http://llvm.org/bugs/show_bug.cgi?id=4159
3 // RUN: tblgen -I %p/../../include --gen-llvmc %s -o %t
4 // RUN: FileCheck -input-file %t %s
5 // RUN: %compile_cxx -Qunused-arguments -fexceptions -x c++ %t
6
7 include "llvm/CompilerDriver/Common.td"
8
9 def OptList : OptionList<[(parameter_option "dummy", (extern))]>;
10
11 def dummy_tool : Tool<[
12 (cmd_line "dummy_cmd $INFILE"),
13 (in_language "dummy"),
14 (out_language "dummy"),
15 (actions (case
16          // CHECK: vec.push_back("unique_name")
17          (not_empty "dummy"), (forward_as "dummy", "unique_name")))
18 ]>;
19
20 def DummyGraph : CompilationGraph<[SimpleEdge<"root", "dummy_tool">]>;