summaryrefslogtreecommitdiffstats
path: root/tests/ui/abi/issue-94223.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/abi/issue-94223.rs')
-rw-r--r--tests/ui/abi/issue-94223.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ui/abi/issue-94223.rs b/tests/ui/abi/issue-94223.rs
new file mode 100644
index 000000000..79d6b9403
--- /dev/null
+++ b/tests/ui/abi/issue-94223.rs
@@ -0,0 +1,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])) {}