the test suite assumes a libstd with full MIR; run test suite on xargo-built foreign libstds

This commit is contained in:
Ralf Jung
2018-12-10 10:04:55 +01:00
parent b6eb2cd08e
commit f044205b5f
84 changed files with 22 additions and 50 deletions

View File

@@ -0,0 +1,6 @@
//error-pattern: attempt to add with overflow
fn main() {
let v = [1i8, 2];
let x = &v[1] as *const i8;
let _val = unsafe { x.offset(isize::min_value()) };
}