]> git.proxmox.com Git - rustc.git/blame - tests/codegen/macos/i686-no-macosx-deployment-target.rs
New upstream version 1.74.1+dfsg1
[rustc.git] / tests / codegen / macos / i686-no-macosx-deployment-target.rs
CommitLineData
48663c56
XL
1//
2// Checks that we leave the target alone MACOSX_DEPLOYMENT_TARGET is unset.
3// See issue #60235.
4
5// compile-flags: -O --target=i686-apple-darwin --crate-type=rlib
136023e0 6// needs-llvm-components: x86
48663c56
XL
7// unset-rustc-env:MACOSX_DEPLOYMENT_TARGET
8#![feature(no_core, lang_items)]
9#![no_core]
10
11#[lang="sized"]
12trait Sized { }
13#[lang="freeze"]
14trait Freeze { }
15#[lang="copy"]
16trait Copy { }
17
18#[repr(C)]
19pub struct Bool {
20 b: bool,
21}
22
781aab86 23// CHECK: target triple = "i686-apple-macosx10.12.0"
48663c56
XL
24#[no_mangle]
25pub extern "C" fn structbool() -> Bool {
26 Bool { b: true }
27}