File: targets-macho.rs

package info (click to toggle)
rustc-web 1.78.0%2Bdfsg1-2~deb11u3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,245,360 kB
  • sloc: xml: 147,985; javascript: 18,022; sh: 11,083; python: 10,265; ansic: 6,172; cpp: 5,023; asm: 4,390; makefile: 4,269
file content (81 lines) | stat: -rw-r--r-- 3,707 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
//@ assembly-output: emit-asm
// ignore-tidy-linelength
//@ revisions: aarch64_apple_darwin
//@ [aarch64_apple_darwin] compile-flags: --target aarch64-apple-darwin
//@ [aarch64_apple_darwin] needs-llvm-components: aarch64
//@ revisions: aarch64_apple_ios
//@ [aarch64_apple_ios] compile-flags: --target aarch64-apple-ios
//@ [aarch64_apple_ios] needs-llvm-components: aarch64
//@ revisions: aarch64_apple_ios_macabi
//@ [aarch64_apple_ios_macabi] compile-flags: --target aarch64-apple-ios-macabi
//@ [aarch64_apple_ios_macabi] needs-llvm-components: aarch64
//@ revisions: aarch64_apple_ios_sim
//@ [aarch64_apple_ios_sim] compile-flags: --target aarch64-apple-ios-sim
//@ [aarch64_apple_ios_sim] needs-llvm-components: aarch64
//@ revisions: aarch64_apple_tvos
//@ [aarch64_apple_tvos] compile-flags: --target aarch64-apple-tvos
//@ [aarch64_apple_tvos] needs-llvm-components: aarch64
//@ revisions: aarch64_apple_tvos_sim
//@ [aarch64_apple_tvos_sim] compile-flags: --target aarch64-apple-tvos-sim
//@ [aarch64_apple_tvos_sim] needs-llvm-components: aarch64
//@ revisions: aarch64_apple_watchos
//@ [aarch64_apple_watchos] compile-flags: --target aarch64-apple-watchos
//@ [aarch64_apple_watchos] needs-llvm-components: aarch64
//@ revisions: aarch64_apple_watchos_sim
//@ [aarch64_apple_watchos_sim] compile-flags: --target aarch64-apple-watchos-sim
//@ [aarch64_apple_watchos_sim] needs-llvm-components: aarch64
//@ revisions: arm64_32_apple_watchos
//@ [arm64_32_apple_watchos] compile-flags: --target arm64_32-apple-watchos
//@ [arm64_32_apple_watchos] needs-llvm-components: aarch64
//@ revisions: arm64e_apple_darwin
//@ [arm64e_apple_darwin] compile-flags: --target arm64e-apple-darwin
//@ [arm64e_apple_darwin] needs-llvm-components: aarch64
//@ revisions: arm64e_apple_ios
//@ [arm64e_apple_ios] compile-flags: --target arm64e-apple-ios
//@ [arm64e_apple_ios] needs-llvm-components: aarch64
//@ revisions: armv7k_apple_watchos
//@ [armv7k_apple_watchos] compile-flags: --target armv7k-apple-watchos
//@ [armv7k_apple_watchos] needs-llvm-components: arm
//@ revisions: armv7s_apple_ios
//@ [armv7s_apple_ios] compile-flags: --target armv7s-apple-ios
//@ [armv7s_apple_ios] needs-llvm-components: arm
//@ revisions: i386_apple_ios
//@ [i386_apple_ios] compile-flags: --target i386-apple-ios
//@ [i386_apple_ios] needs-llvm-components: x86
//@ revisions: i686_apple_darwin
//@ [i686_apple_darwin] compile-flags: --target i686-apple-darwin
//@ [i686_apple_darwin] needs-llvm-components: x86
//@ revisions: x86_64_apple_darwin
//@ [x86_64_apple_darwin] compile-flags: --target x86_64-apple-darwin
//@ [x86_64_apple_darwin] needs-llvm-components: x86
//@ revisions: x86_64_apple_ios
//@ [x86_64_apple_ios] compile-flags: --target x86_64-apple-ios
//@ [x86_64_apple_ios] needs-llvm-components: x86
//@ revisions: x86_64_apple_ios_macabi
//@ [x86_64_apple_ios_macabi] compile-flags: --target x86_64-apple-ios-macabi
//@ [x86_64_apple_ios_macabi] needs-llvm-components: x86
//@ revisions: x86_64_apple_tvos
//@ [x86_64_apple_tvos] compile-flags: --target x86_64-apple-tvos
//@ [x86_64_apple_tvos] needs-llvm-components: x86
//@ revisions: x86_64_apple_watchos_sim
//@ [x86_64_apple_watchos_sim] compile-flags: --target x86_64-apple-watchos-sim
//@ [x86_64_apple_watchos_sim] needs-llvm-components: x86
//@ revisions: x86_64h_apple_darwin
//@ [x86_64h_apple_darwin] compile-flags: --target x86_64h-apple-darwin
//@ [x86_64h_apple_darwin] needs-llvm-components: x86

// Sanity-check that each target can produce assembly code.

#![feature(no_core, lang_items)]
#![no_std]
#![no_core]
#![crate_type = "lib"]

#[lang = "sized"]
trait Sized {}

pub fn test() -> u8 {
    42
}

// CHECK: .section __TEXT,__text