1
Fork 0

Disable failing codegen test

This commit is contained in:
CAD97 2020-02-05 15:51:27 -05:00 committed by Mark Rousskov
parent 3e115b6c9d
commit 136008c15b

View file

@ -25,28 +25,30 @@ pub fn check_foo2() -> u64 {
} }
// Simplified example of #45222 // Simplified example of #45222
//
fn triangle_inc(n: u64) -> u64 { // Temporarily disabled in #68835 to fix a soundness hole.
let mut count = 0; //
for j in 0 ..= n { // fn triangle_inc(n: u64) -> u64 {
count += j; // let mut count = 0;
} // for j in 0 ..= n {
count // count += j;
} // }
// count
// CHECK-LABEL: @check_triangle_inc // }
#[no_mangle] //
pub fn check_triangle_inc() -> u64 { // // COMMENTEDCHECK-LABEL: @check_triangle_inc
// CHECK: ret i64 5000050000 // #[no_mangle]
triangle_inc(100000) // pub fn check_triangle_inc() -> u64 {
} // // COMMENTEDCHECK: ret i64 5000050000
// triangle_inc(100000)
// }
// Demo in #48012 // Demo in #48012
fn foo3r(n: u64) -> u64 { fn foo3r(n: u64) -> u64 {
let mut count = 0; let mut count = 0;
(0..n).for_each(|_| { (0..n).for_each(|_| {
(0 ..= n).rev().for_each(|j| { (0..=n).rev().for_each(|j| {
count += j; count += j;
}) })
}); });