rust/tests/ui/repr/repr-transparent-issue-87496.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
280 B
Rust
Raw Normal View History

// Regression test for the ICE described in #87496.
// check-pass
#[repr(transparent)]
struct TransparentCustomZst(());
extern "C" {
fn good17(p: TransparentCustomZst);
//~^ WARNING: `extern` block uses type `TransparentCustomZst`, which is not FFI-safe
}
fn main() {}