2020-05-10 14:54:30 +00:00
|
|
|
// Compiler:
|
|
|
|
//
|
|
|
|
// Run-time:
|
|
|
|
// status: 0
|
|
|
|
// stdout: 3
|
|
|
|
|
2025-04-17 12:34:28 +00:00
|
|
|
#![feature(no_core)]
|
2020-05-10 14:54:30 +00:00
|
|
|
#![no_std]
|
|
|
|
#![no_core]
|
2024-12-14 08:13:12 +00:00
|
|
|
#![no_main]
|
2020-05-10 14:54:30 +00:00
|
|
|
|
2025-03-08 11:17:58 +00:00
|
|
|
extern crate mini_core;
|
|
|
|
use mini_core::*;
|
2020-05-10 14:54:30 +00:00
|
|
|
|
2024-12-14 08:13:12 +00:00
|
|
|
#[no_mangle]
|
|
|
|
extern "C" fn main(argc: i32, _argv: *const *const u8) -> i32 {
|
2020-05-10 14:54:30 +00:00
|
|
|
let test: (isize, isize, isize) = (3, 1, 4);
|
|
|
|
unsafe {
|
|
|
|
libc::printf(b"%ld\n\0" as *const u8 as *const i8, test.0);
|
|
|
|
}
|
|
|
|
0
|
|
|
|
}
|