adjust error messages in tests

This commit is contained in:
Ralf Jung
2019-08-03 20:54:57 +02:00
parent 8d99e42f47
commit a41ec9aacb
4 changed files with 3 additions and 12 deletions
@@ -1,9 +0,0 @@
#![feature(core_intrinsics)]
pub fn main() {
let mut z: f64 = 1.0;
unsafe {
::std::intrinsics::atomic_xadd(&mut z, 2.0);
//~^ ERROR: Atomic arithmetic operations only work on integer types
}
}
+1 -1
View File
@@ -10,6 +10,6 @@ pub fn main() {
unsafe {
use crate::rusti::*;
ctlz_nonzero(0u8); //~ ERROR ctlz_nonzero called on 0
ctlz_nonzero(0u8); //~ ERROR `ctlz_nonzero` called on 0
}
}
+1 -1
View File
@@ -10,6 +10,6 @@ pub fn main() {
unsafe {
use crate::rusti::*;
cttz_nonzero(0u8); //~ ERROR cttz_nonzero called on 0
cttz_nonzero(0u8); //~ ERROR `cttz_nonzero` called on 0
}
}
@@ -2,7 +2,7 @@
use std::intrinsics::*;
//error-pattern: Overflowing shift by 64 in unchecked_shr
//error-pattern: Overflowing shift by 64 in `unchecked_shr`
fn main() {
unsafe {