projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
implement aliases for div/idiv that have an explicit A register operand,
[oota-llvm.git]
/
test
/
LLVMC
/
Init.td
diff --git
a/test/LLVMC/Init.td
b/test/LLVMC/Init.td
index d9a4fc1c1b12418792f633ff36bc6d42b25f466e..c3846797026e4c2bc961416e9e9df747927b62a5 100644
(file)
--- a/
test/LLVMC/Init.td
+++ b/
test/LLVMC/Init.td
@@
-1,17
+1,20
@@
// Check that (init true/false) and (init "str") work.
// RUN: tblgen -I %p/../../include --gen-llvmc %s -o %t
// Check that (init true/false) and (init "str") work.
// RUN: tblgen -I %p/../../include --gen-llvmc %s -o %t
-// RUN: grep cl::init(\\"some-string\\") %t | count 1
-// RUN: grep cl::init(true) %t | count 1
+// RUN: FileCheck -input-file %t %s
+// RUN: %compile_cxx %t
+// XFAIL: vg_leak
include "llvm/CompilerDriver/Common.td"
def OptList : OptionList<[
include "llvm/CompilerDriver/Common.td"
def OptList : OptionList<[
+// CHECK: cl::init(true)
(switch_option "dummy1", (help "none"), (init true)),
(switch_option "dummy1", (help "none"), (init true)),
+// CHECK: cl::init("some-string")
(parameter_option "dummy2", (help "none"), (init "some-string"))
]>;
def dummy_tool : Tool<[
(parameter_option "dummy2", (help "none"), (init "some-string"))
]>;
def dummy_tool : Tool<[
-(c
md_line "dummy_cmd $INFILE
"),
+(c
ommand "dummy_cmd
"),
(in_language "dummy_lang"),
(out_language "dummy_lang"),
(actions (case
(in_language "dummy_lang"),
(out_language "dummy_lang"),
(actions (case
@@
-19,4
+22,4
@@
def dummy_tool : Tool<[
(not_empty "dummy2"), (forward "dummy2")))
]>;
(not_empty "dummy2"), (forward "dummy2")))
]>;
-def DummyGraph : CompilationGraph<[
SimpleEdge<"root", "dummy_tool">
]>;
+def DummyGraph : CompilationGraph<[
(edge "root", "dummy_tool")
]>;