2025-02-28 13:48:58 +00:00
|
|
|
//@ aux-build:wrong_regparm_and_ret.rs
|
|
|
|
//@ compile-flags: --target i686-unknown-linux-gnu
|
2024-11-17 21:07:29 +00:00
|
|
|
//@ needs-llvm-components: x86
|
|
|
|
|
2025-02-28 13:48:58 +00:00
|
|
|
//@ revisions:two_allowed unknown_allowed
|
2024-11-17 21:07:29 +00:00
|
|
|
//@[two_allowed] compile-flags: -Cunsafe-allow-abi-mismatch=regparm,reg-struct-return
|
|
|
|
//@[unknown_allowed] compile-flags: -Cunsafe-allow-abi-mismatch=unknown_flag -Zregparm=2 -Zreg-struct-return=true
|
2025-02-28 13:48:58 +00:00
|
|
|
//@[two_allowed] check-pass
|
2024-11-17 21:07:29 +00:00
|
|
|
|
2025-02-28 13:48:58 +00:00
|
|
|
#![feature(no_core)]
|
2024-11-17 21:07:29 +00:00
|
|
|
//[unknown_allowed]~^ ERROR unknown target modifier `unknown_flag`, requested by `-Cunsafe-allow-abi-mismatch=unknown_flag`
|
2025-02-28 13:48:58 +00:00
|
|
|
#![crate_type = "rlib"]
|
2024-11-17 21:07:29 +00:00
|
|
|
#![no_core]
|
|
|
|
|
2025-02-28 13:48:58 +00:00
|
|
|
extern crate wrong_regparm_and_ret;
|