test_const_allocate_at_runtime
This commit is contained in:
parent
29932db09b
commit
7a7144f413
@ -83,7 +83,16 @@ fn test_hints_in_const_contexts() {
|
||||
|
||||
#[cfg(not(bootstrap))]
|
||||
#[test]
|
||||
fn test_const_dealocate_at_runtime() {
|
||||
fn test_const_allocate_at_runtime() {
|
||||
use core::intrinsics::const_allocate;
|
||||
unsafe {
|
||||
assert!(const_allocate(4, 4).is_null());
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(not(bootstrap))]
|
||||
#[test]
|
||||
fn test_const_deallocate_at_runtime() {
|
||||
use core::intrinsics::const_deallocate;
|
||||
const X: &u32 = &42u32;
|
||||
let x = &0u32;
|
||||
|
Loading…
x
Reference in New Issue
Block a user