Home | History | Annotate | Download | only in LLVMC
      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 %t
      6 // XFAIL: vg_leak
      7 
      8 include "llvm/CompilerDriver/Common.td"
      9 
     10 def OptList : OptionList<[(parameter_option "dummy", (help "dummmy"))]>;
     11 
     12 def dummy_tool : Tool<[
     13 (command "dummy_cmd"),
     14 (in_language "dummy"),
     15 (out_language "dummy"),
     16 (actions (case
     17          // CHECK: "unique_name"));
     18          (not_empty "dummy"), (forward_as "dummy", "unique_name")))
     19 ]>;
     20 
     21 def DummyGraph : CompilationGraph<[(edge "root", "dummy_tool")]>;
     22