Skip to content

Commit

Permalink
Added test
Browse files Browse the repository at this point in the history
  • Loading branch information
tautschnig committed Jun 5, 2024
1 parent 836a5ee commit b74d32d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/kani/FatPointers/metadata.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Copyright Kani Contributors
// SPDX-License-Identifier: Apache-2.0 OR MIT

#![feature(ptr_metadata)]

#[kani::proof]
fn ptr_metadata() {
assert_eq!(std::ptr::metadata("foo"), 3_usize);
}

0 comments on commit b74d32d

Please sign in to comment.