about summary refs log tree commit diff
path: root/tests/ui/abi/rust-cold-works-with-rustic-args.rs
blob: 551485469d3a60be79d3670682d8a134ad758096 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//@ add-core-stubs
//@ build-pass
//@ compile-flags: -Clink-dead-code=true
// We used to not handle all "rustic" ABIs in a (relatively) uniform way,
// so we failed to fix up arguments for actually passing through the ABI...
#![feature(rust_cold_cc)]
#![crate_type = "lib"]
#![feature(no_core)]
#![no_std]
#![no_core]

extern crate minicore;
use minicore::*;

pub extern "rust-cold" fn foo(_: [usize; 3]) {}