projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Covert this test to .s form.
[oota-llvm.git]
/
test
/
LLVMC
/
OptionPreprocessor.td
diff --git
a/test/LLVMC/OptionPreprocessor.td
b/test/LLVMC/OptionPreprocessor.td
index 8d748eee532cb5616ed403d634e370c74bccc324..5fdc35a187ebb4e825e623c9ab2782cbe6083202 100644
(file)
--- a/
test/LLVMC/OptionPreprocessor.td
+++ b/
test/LLVMC/OptionPreprocessor.td
@@
-1,7
+1,8
@@
// Test for the OptionPreprocessor and related functionality.
// RUN: tblgen -I %p/../../include --gen-llvmc %s -o %t
// RUN: FileCheck -input-file %t %s
// Test for the OptionPreprocessor and related functionality.
// RUN: tblgen -I %p/../../include --gen-llvmc %s -o %t
// RUN: FileCheck -input-file %t %s
-// RUN: %compile_cxx -fexceptions -x c++ %t
+// RUN: %compile_cxx %t
+// XFAIL: vg_leak
include "llvm/CompilerDriver/Common.td"
include "llvm/CompilerDriver/Common.td"
@@
-21,7
+22,7
@@
def Preprocess : OptionPreprocessor<
// CHECK: foo = false;
// CHECK: foo_p = "";
// CHECK: foo_l.clear();
// CHECK: foo = false;
// CHECK: foo_p = "";
// CHECK: foo_l.clear();
- (and (switch_on "foo"), (any_switch_on
["bar", "baz"]
)),
+ (and (switch_on "foo"), (any_switch_on
"bar", "baz"
)),
[(warning "W1"), (unset_option "foo"),
(unset_option "foo_p"), (unset_option "foo_l")],
// CHECK: W2
[(warning "W1"), (unset_option "foo"),
(unset_option "foo_p"), (unset_option "foo_l")],
// CHECK: W2
@@
-33,7
+34,7
@@
def Preprocess : OptionPreprocessor<
// CHECK: foo_l.push_back("qwert");
// CHECK: foo_l.push_back("yuiop");
// CHECK: foo_l.push_back("asdf");
// CHECK: foo_l.push_back("qwert");
// CHECK: foo_l.push_back("yuiop");
// CHECK: foo_l.push_back("asdf");
- (and (switch_on
["foo", "bar"]), (any_empty ["foo_p", "bar_p"]
)),
+ (and (switch_on
"foo", "bar"), (any_empty "foo_p", "bar_p"
)),
[(warning "W2"), (set_option "foo"),
(set_option "bar", true),
(set_option "baz", false),
[(warning "W2"), (set_option "foo"),
(set_option "bar", true),
(set_option "baz", false),
@@
-43,8
+44,8
@@
def Preprocess : OptionPreprocessor<
// CHECK: foo = true;
// CHECK: bar = true;
// CHECK: baz = true;
// CHECK: foo = true;
// CHECK: bar = true;
// CHECK: baz = true;
- (and (empty
["foo_p", "bar_p"]), (any_not_empty ["baz_p"]
)),
- [(warning "W3"), (set_option
["foo", "bar", "baz"]
)])
+ (and (empty
"foo_p", "bar_p"), (any_not_empty "baz_p"
)),
+ [(warning "W3"), (set_option
"foo", "bar", "baz"
)])
>;
// Shut up warnings...
>;
// Shut up warnings...
@@
-52,7
+53,7
@@
def dummy : Tool<
[(in_language "dummy"),
(out_language "dummy"),
(output_suffix "d"),
[(in_language "dummy"),
(out_language "dummy"),
(output_suffix "d"),
- (c
md_line "dummy $INFILE -o $OUTFILE
"),
+ (c
ommand "dummy
"),
(actions (case (switch_on "foo"), (error),
(switch_on "bar"), (error),
(switch_on "baz"), (error),
(actions (case (switch_on "foo"), (error),
(switch_on "bar"), (error),
(switch_on "baz"), (error),
@@
-62,5
+63,5
@@
def dummy : Tool<
(not_empty "foo_l"), (error)))
]>;
(not_empty "foo_l"), (error)))
]>;
-def Graph : CompilationGraph<[
Edge<"root", "dummy">
]>;
+def Graph : CompilationGraph<[
(edge "root", "dummy")
]>;