Closed
Description
On OSX (10.9), but the following is possible in a run-pass test, and will result in a "pass":
pub fn main() {
unsafe { *(0 as *mut int) = 0; }
}
This should generally be fine as there is probably not much of an expectation that tests will segfault, but it's not ideal to be missing segfaults and other such exceptions (SIGFPE perhaps?) in the testsuite.
On an x86_64 Linux system (Ubuntu 12.04 LTS, git master), a segfault does fail the test.