2020-04-16 15:50:32 +09:00
|
|
|
// run-fail
|
2016-09-13 20:51:39 +02:00
|
|
|
// error-pattern:index out of bounds
|
2020-05-08 00:39:02 +09:00
|
|
|
// ignore-emscripten no processes
|
2013-10-14 23:25:33 -04:00
|
|
|
|
2013-10-16 18:34:01 -07:00
|
|
|
use std::mem::size_of;
|
2013-10-14 23:25:33 -04:00
|
|
|
|
|
|
|
fn main() {
|
2015-01-25 22:05:03 +01:00
|
|
|
let xs = [1, 2, 3];
|
2015-02-27 01:43:55 +01:00
|
|
|
xs[usize::MAX / size_of::<isize>() + 1];
|
2013-10-14 23:25:33 -04:00
|
|
|
}
|