update/bless tests
This commit is contained in:
parent
6dfb29624c
commit
7dd57f085c
59 changed files with 545 additions and 737 deletions
|
@ -6,8 +6,9 @@ Erroneous code example:
|
|||
#![feature(intrinsics)]
|
||||
#![allow(internal_features)]
|
||||
|
||||
extern "rust-intrinsic" {
|
||||
pub static atomic_singlethreadfence_seqcst: fn();
|
||||
extern "C" {
|
||||
#[rustc_intrinsic]
|
||||
pub static atomic_singlethreadfence_seqcst: unsafe fn();
|
||||
// error: intrinsic must be a function
|
||||
}
|
||||
|
||||
|
@ -22,9 +23,8 @@ error, just declare a function. Example:
|
|||
#![feature(intrinsics)]
|
||||
#![allow(internal_features)]
|
||||
|
||||
extern "rust-intrinsic" {
|
||||
pub fn atomic_singlethreadfence_seqcst(); // ok!
|
||||
}
|
||||
#[rustc_intrinsic]
|
||||
pub unsafe fn atomic_singlethreadfence_seqcst(); // ok!
|
||||
|
||||
fn main() { unsafe { atomic_singlethreadfence_seqcst(); } }
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue