2025-02-24 09:26:54 +00:00
|
|
|
//@ add-core-stubs
|
2023-12-07 14:16:11 +00:00
|
|
|
//@ assembly-output: emit-asm
|
|
|
|
// ignore-tidy-linelength
|
|
|
|
//@ revisions: nvptx64_nvidia_cuda
|
|
|
|
//@ [nvptx64_nvidia_cuda] compile-flags: --target nvptx64-nvidia-cuda
|
|
|
|
//@ [nvptx64_nvidia_cuda] needs-llvm-components: nvptx
|
|
|
|
|
|
|
|
// Sanity-check that each target can produce assembly code.
|
|
|
|
|
|
|
|
#![feature(no_core, lang_items)]
|
|
|
|
#![no_std]
|
|
|
|
#![no_core]
|
|
|
|
#![crate_type = "lib"]
|
|
|
|
|
2025-02-24 09:26:54 +00:00
|
|
|
extern crate minicore;
|
|
|
|
use minicore::*;
|
2023-12-07 14:16:11 +00:00
|
|
|
|
|
|
|
pub fn test() -> u8 {
|
|
|
|
42
|
|
|
|
}
|
|
|
|
|
|
|
|
// CHECK: .version
|