summaryrefslogtreecommitdiffstats
path: root/tests/ui/repr/repr-transparent-issue-87496.rs
blob: a4dd45c63f5648c2d931b4a8949a58e0a6900f84 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// 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() {}