projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make tests register allocation independent again.
[oota-llvm.git]
/
test
/
LLVMC
/
HookWithArguments.td
diff --git
a/test/LLVMC/HookWithArguments.td
b/test/LLVMC/HookWithArguments.td
index 909dc8bf9b472fceeedfda3c717c535e5302803d..bbba2e98459995431163a1034f41153ffb466147 100644
(file)
--- a/
test/LLVMC/HookWithArguments.td
+++ b/
test/LLVMC/HookWithArguments.td
@@
-1,17
+1,20
@@
// Check that hooks with arguments work.
// RUN: tblgen -I %p/../../include --gen-llvmc %s -o %t
// Check that hooks with arguments work.
// RUN: tblgen -I %p/../../include --gen-llvmc %s -o %t
-// RUN: grep {Hook(const char\\* Arg0, const char\\* Arg1, const char\\* Arg2);} %t | count 1
-// RUN: grep "/path" %t | count 1
-// RUN: grep "VARIABLE" %t | count 1
-// RUN: grep "/2path" %t | count 1
-// RUN: %compile_cxx -fexceptions -x c++ %t
+// RUN: FileCheck -input-file %t %s
+// RUN: %compile_cxx %t
+// XFAIL: vg_leak
include "llvm/CompilerDriver/Common.td"
include "llvm/CompilerDriver/Common.td"
+// CHECK: Hook(const char* Arg0, const char* Arg1, const char* Arg2);
+// CHECK: "/path"
+// CHECK: std::getenv("VARIABLE")
+// CHECK: "/2path"
+
def dummy_tool : Tool<[
def dummy_tool : Tool<[
-(c
md_line "$CALL(Hook, 'Arg1', 'Arg2', 'Arg3 Arg3Cont')/path arg1 $ENV(VARIABLE)/2path arg2 $INFILE
"),
+(c
ommand "$CALL(Hook, 'Arg1', 'Arg2', 'Arg3 Arg3Cont')/path arg1 $ENV(VARIABLE)/2path arg2
"),
(in_language "dummy"),
(out_language "dummy")
]>;
(in_language "dummy"),
(out_language "dummy")
]>;
-def DummyGraph : CompilationGraph<[
SimpleEdge<"root", "dummy_tool">
]>;
+def DummyGraph : CompilationGraph<[
(edge "root", "dummy_tool")
]>;