Skip to content

Commit

Permalink
move test
Browse files Browse the repository at this point in the history
  • Loading branch information
carolynzech committed Oct 23, 2024
1 parent 28d1288 commit 0c82f57
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion tests/expected/issue-3631/issue-3631.expected

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// Copyright Kani Contributors
// SPDX-License-Identifier: Apache-2.0 OR MIT
// Test that Kani can verify code that produces a aggregate raw pointer to trait objects
// c.f. https://github.com/model-checking/kani/issues/3631

#![feature(ptr_metadata)]

Expand All @@ -21,7 +23,7 @@ impl SampleTrait for SampleStruct {

#[cfg(kani)]
#[kani::proof]
fn main() {
fn check_nonnull_dyn_from_raw_parts() {
// Create a SampleTrait object from SampleStruct
let sample_struct = SampleStruct { value: kani::any() };
let trait_object: &dyn SampleTrait = &sample_struct;
Expand Down

0 comments on commit 0c82f57

Please sign in to comment.