From 439160434710c5dcd56f1efa6055969e2afe27d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roland=20Lei=C3=9Fa?= Date: Tue, 21 Mar 2017 17:55:59 +0100 Subject: [PATCH] issue #51, pull request #57: * mark broken tests --- test/codegen/bind_ret_inner_fn.impala | 3 +-- test/codegen/conversion_trait.impala | 2 +- test/codegen/endless_mangling.impala | 2 +- test/codegen/fold.impala | 2 +- test/codegen/generic_get.impala | 2 +- test/codegen/generic_while.impala | 2 +- test/codegen/ldg.impala | 2 +- test/codegen/mem2reg_bug2.impala | 2 +- test/codegen/parallel.impala | 2 +- test/codegen/poly_id.impala | 2 +- test/codegen/poly_sort.impala | 2 +- test/codegen/poly_sq.impala | 2 +- test/codegen/poly_type_arg.impala | 2 +- test/codegen/primes.impala | 2 +- test/codegen/range.impala | 2 +- test/codegen/range_poly.impala | 2 +- test/codegen/ret_assert.impala | 2 +- test/codegen/struct_arg.impala | 2 +- test/codegen/system_f_problem.impala | 2 +- test/codegen/trait_impls.impala | 2 +- test/codegen/while_true.impala | 2 +- 21 files changed, 21 insertions(+), 22 deletions(-) diff --git a/test/codegen/bind_ret_inner_fn.impala b/test/codegen/bind_ret_inner_fn.impala index 490eb0352..d3c9e1b0a 100644 --- a/test/codegen/bind_ret_inner_fn.impala +++ b/test/codegen/bind_ret_inner_fn.impala @@ -1,5 +1,4 @@ -// codegen - +// codegen broken fn f(b: bool, i: int) -> int { fn F() -> ! { r(i-1) } diff --git a/test/codegen/conversion_trait.impala b/test/codegen/conversion_trait.impala index c7644a24a..1f985b373 100644 --- a/test/codegen/conversion_trait.impala +++ b/test/codegen/conversion_trait.impala @@ -1,4 +1,4 @@ -// codegen +// codegen broken trait Conv[T] { fn conv(self: &Self) -> T; diff --git a/test/codegen/endless_mangling.impala b/test/codegen/endless_mangling.impala index c183f56fe..493938097 100644 --- a/test/codegen/endless_mangling.impala +++ b/test/codegen/endless_mangling.impala @@ -1,4 +1,4 @@ -// codegen +// codegen broken fn f(a: int, ret1: fn(int) -> !, ret2: fn(int) -> !) -> ! { if a < 42 { diff --git a/test/codegen/fold.impala b/test/codegen/fold.impala index 54d36d18c..e8b0d3c0a 100644 --- a/test/codegen/fold.impala +++ b/test/codegen/fold.impala @@ -1,4 +1,4 @@ -// codegen +// codegen broken fn seq(a: int, b: int) -> (int, fn(int, fn(int) -> ()) -> ()) { fn stream(i: int, yield: fn(int) -> ()) -> () { diff --git a/test/codegen/generic_get.impala b/test/codegen/generic_get.impala index 2cdca2390..0e3df8586 100644 --- a/test/codegen/generic_get.impala +++ b/test/codegen/generic_get.impala @@ -1,4 +1,4 @@ -// codegen +// codegen broken fn get[T]() -> T { let mut tuple: (T, T); diff --git a/test/codegen/generic_while.impala b/test/codegen/generic_while.impala index 10cdfbaea..963b49d78 100644 --- a/test/codegen/generic_while.impala +++ b/test/codegen/generic_while.impala @@ -1,4 +1,4 @@ -// codegen +// codegen broken fn generic_while[L, B](l : L, head : fn(L) -> (B, bool), diff --git a/test/codegen/ldg.impala b/test/codegen/ldg.impala index ba9192c1c..21f524d9f 100644 --- a/test/codegen/ldg.impala +++ b/test/codegen/ldg.impala @@ -1,4 +1,4 @@ -// codegen +// codegen broken extern "C" { fn __ldg[T](&T) -> T; diff --git a/test/codegen/mem2reg_bug2.impala b/test/codegen/mem2reg_bug2.impala index adab8053b..f372ad93b 100644 --- a/test/codegen/mem2reg_bug2.impala +++ b/test/codegen/mem2reg_bug2.impala @@ -1,4 +1,4 @@ -// codegen +// codegen broken // https://github.com/AnyDSL/thorin/issues/27 diff --git a/test/codegen/parallel.impala b/test/codegen/parallel.impala index a29d66d98..da5bbf4cd 100644 --- a/test/codegen/parallel.impala +++ b/test/codegen/parallel.impala @@ -1,4 +1,4 @@ -// codegen +// codegen broken fn main() -> int { let mut i = 0; diff --git a/test/codegen/poly_id.impala b/test/codegen/poly_id.impala index 1d8944be7..2b2ecbbab 100644 --- a/test/codegen/poly_id.impala +++ b/test/codegen/poly_id.impala @@ -1,4 +1,4 @@ -// codegen +// codegen broken fn id[T](x: T) -> T { x diff --git a/test/codegen/poly_sort.impala b/test/codegen/poly_sort.impala index 68aef31f2..a895481bc 100644 --- a/test/codegen/poly_sort.impala +++ b/test/codegen/poly_sort.impala @@ -1,4 +1,4 @@ -// codegen +// codegen broken fn range(a: int, b: int, body: fn (int) -> ()) -> () { if a < b { diff --git a/test/codegen/poly_sq.impala b/test/codegen/poly_sq.impala index 36803ff16..8ccacf684 100644 --- a/test/codegen/poly_sq.impala +++ b/test/codegen/poly_sq.impala @@ -1,4 +1,4 @@ -// codegen +// codegen broken fn sq[T](mul: fn(T, T) -> T, val: T) -> T { mul(val, val) diff --git a/test/codegen/poly_type_arg.impala b/test/codegen/poly_type_arg.impala index 76fbb9429..4782cdaf1 100644 --- a/test/codegen/poly_type_arg.impala +++ b/test/codegen/poly_type_arg.impala @@ -1,4 +1,4 @@ -// codegen +// codegen broken extern "thorin" { fn reserve_shared[T](i32) -> &[3][T]; diff --git a/test/codegen/primes.impala b/test/codegen/primes.impala index 47e72ef08..df86bb049 100644 --- a/test/codegen/primes.impala +++ b/test/codegen/primes.impala @@ -1,4 +1,4 @@ -// codegen +// codegen broken fn primes[T](n: int, t: T, body: fn(int, T) -> T) -> T { if n < 2 { diff --git a/test/codegen/range.impala b/test/codegen/range.impala index 71e736263..d9b11e9fe 100644 --- a/test/codegen/range.impala +++ b/test/codegen/range.impala @@ -1,4 +1,4 @@ -// codegen +// codegen broken trait Iterator { fn inc(self: Self) -> Self; diff --git a/test/codegen/range_poly.impala b/test/codegen/range_poly.impala index 1a14f6886..c10afba47 100644 --- a/test/codegen/range_poly.impala +++ b/test/codegen/range_poly.impala @@ -1,4 +1,4 @@ -// codegen +// codegen broken trait Iterator { fn inc(self: Self) -> Self; diff --git a/test/codegen/ret_assert.impala b/test/codegen/ret_assert.impala index b57b0e04d..1a5f1da0b 100644 --- a/test/codegen/ret_assert.impala +++ b/test/codegen/ret_assert.impala @@ -1,4 +1,4 @@ -// codegen +// codegen broken extern "thorin" { fn nvvm(int, (int, int, int), (int, int, int), fn() -> ()) -> (); diff --git a/test/codegen/struct_arg.impala b/test/codegen/struct_arg.impala index 39cef755c..deb59bde5 100644 --- a/test/codegen/struct_arg.impala +++ b/test/codegen/struct_arg.impala @@ -1,4 +1,4 @@ -// codegen +// codegen broken struct S { fun : fn(i32, fn(fn(i32) -> i32) -> ()) -> (), diff --git a/test/codegen/system_f_problem.impala b/test/codegen/system_f_problem.impala index 491b967d3..eab260805 100644 --- a/test/codegen/system_f_problem.impala +++ b/test/codegen/system_f_problem.impala @@ -1,4 +1,4 @@ -// codegen +// codegen broken fn id[T](a: T) -> T { a } diff --git a/test/codegen/trait_impls.impala b/test/codegen/trait_impls.impala index a9478a208..5edaccc4e 100644 --- a/test/codegen/trait_impls.impala +++ b/test/codegen/trait_impls.impala @@ -1,4 +1,4 @@ -// codegen +// codegen broken // TODO this example is not semantically correct because method overloading is prohibited! (=>int cannot implement A and B together) diff --git a/test/codegen/while_true.impala b/test/codegen/while_true.impala index a4240e657..89c44df7b 100644 --- a/test/codegen/while_true.impala +++ b/test/codegen/while_true.impala @@ -1,4 +1,4 @@ -// codegen +// codegen broken fn main() -> int { let mut i = 0;