X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=test%2FLLVMC%2FInit.td;h=c3846797026e4c2bc961416e9e9df747927b62a5;hb=689cf3cb6222652b92fdbd52e96c1d2f421ac44e;hp=d9a4fc1c1b12418792f633ff36bc6d42b25f466e;hpb=b5fab402d02671f92ea7fc6166ba80e00d6a8388;p=oota-llvm.git diff --git a/test/LLVMC/Init.td b/test/LLVMC/Init.td index d9a4fc1c1b1..c3846797026 100644 --- 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 -// 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<[ +// CHECK: cl::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<[ -(cmd_line "dummy_cmd $INFILE"), +(command "dummy_cmd"), (in_language "dummy_lang"), (out_language "dummy_lang"), (actions (case @@ -19,4 +22,4 @@ def dummy_tool : Tool<[ (not_empty "dummy2"), (forward "dummy2"))) ]>; -def DummyGraph : CompilationGraph<[SimpleEdge<"root", "dummy_tool">]>; +def DummyGraph : CompilationGraph<[(edge "root", "dummy_tool")]>;