XFAIL tests from LLVMC on valgrind or valgrind+leak-checking. We
[oota-llvm.git] / test / LLVMC / NoActions.td
index 43fd0079eee2d47b20bebd48c75a85ff23655e2d..a80bcfe6ce1cc519caef7c0112bf969abb22997a 100644 (file)
@@ -1,10 +1,14 @@
 // Check that tools without associated actions are accepted.
-// RUN: tblgen -I $srcroot/include --gen-llvmc %s | grep dummy_tool
+// 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"
 
+// CHECK: class dummy_tool : public Tool {
 def dummy_tool : Tool<[
-(cmd_line "dummy_cmd"),
+(command "dummy_cmd"),
 (in_language "dummy"),
 (out_language "dummy")
 ]>;