From b74d32def3464335c2d4d56585ddecf25e4b0488 Mon Sep 17 00:00:00 2001 From: Michael Tautschnig Date: Wed, 5 Jun 2024 10:29:16 +0000 Subject: [PATCH] Added test --- tests/kani/FatPointers/metadata.rs | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 tests/kani/FatPointers/metadata.rs diff --git a/tests/kani/FatPointers/metadata.rs b/tests/kani/FatPointers/metadata.rs new file mode 100644 index 000000000000..0f3236f4c8a2 --- /dev/null +++ b/tests/kani/FatPointers/metadata.rs @@ -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); +}