2024-11-18 04:07:29 +07:00
|
|
|
// Tests that default unspecified target modifier value in dependency crate is ok linked
|
|
|
|
// with the same value, explicitly specified
|
2025-02-28 16:48:58 +03:00
|
|
|
|
|
|
|
//@ aux-build:default_reg_struct_return.rs
|
2024-11-18 04:07:29 +07:00
|
|
|
//@ compile-flags: --target i686-unknown-linux-gnu -Cpanic=abort
|
2025-02-28 16:48:58 +03:00
|
|
|
//@ needs-llvm-components: x86
|
|
|
|
|
|
|
|
//@ revisions: ok ok_explicit error
|
2024-11-18 04:07:29 +07:00
|
|
|
//@[ok] compile-flags:
|
|
|
|
//@[ok_explicit] compile-flags: -Zreg-struct-return=false
|
|
|
|
//@[error] compile-flags: -Zreg-struct-return=true
|
2025-02-28 16:48:58 +03:00
|
|
|
//@[ok] check-pass
|
|
|
|
//@[ok_explicit] check-pass
|
2024-11-18 04:07:29 +07:00
|
|
|
|
2025-02-28 16:48:58 +03:00
|
|
|
#![feature(no_core)]
|
2024-11-18 04:07:29 +07:00
|
|
|
//[error]~^ ERROR mixing `-Zreg-struct-return` will cause an ABI mismatch in crate `defaults_check`
|
2025-02-28 16:48:58 +03:00
|
|
|
#![crate_type = "rlib"]
|
2024-11-18 04:07:29 +07:00
|
|
|
#![no_core]
|
|
|
|
|
2025-02-28 16:48:58 +03:00
|
|
|
extern crate default_reg_struct_return;
|