Use a ManagedCleanup to prevent leaking the PassRegistrar map. In breaks the
[oota-llvm.git] / test / LLVMC / ForwardAs.td
index ce6fbb06ef51f0b01386a87bcd9ffb7868efda80..536b96a9758faed5103203c5df7e7baa4f63e5be 100644 (file)
@@ -3,17 +3,18 @@
 // RUN: tblgen -I %p/../../include --gen-llvmc %s -o %t
 // RUN: FileCheck -input-file %t %s
 // RUN: %compile_cxx -fexceptions -x c++ %t
+// XFAIL: vg_leak
 
 include "llvm/CompilerDriver/Common.td"
 
 def OptList : OptionList<[(parameter_option "dummy", (extern))]>;
 
 def dummy_tool : Tool<[
-(cmd_line "dummy_cmd $INFILE"),
+(command "dummy_cmd"),
 (in_language "dummy"),
 (out_language "dummy"),
 (actions (case
-         // CHECK: vec.push_back("unique_name")
+         // CHECK: "unique_name"));
          (not_empty "dummy"), (forward_as "dummy", "unique_name")))
 ]>;