summaryrefslogtreecommitdiffstats
path: root/tests/ui/abi/issue-94223.rs
blob: 79d6b94031bc2676b8bc7db57f542baa97744d40 (plain)
1
2
3
4
5
6
7
8
// check-pass
#![allow(improper_ctypes_definitions)]
#![crate_type = "lib"]

// Check that computing the fn abi for `bad`, with a external ABI fn ptr that is not FFI-safe, does
// not ICE.

pub fn bad(f: extern "C" fn([u8])) {}