mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-31 13:40:15 +03:00
062ecd60a9
This was an issue for old ptx ISA versions. Those are not supported by rustc anymore
25 lines
600 B
Rust
25 lines
600 B
Rust
//@ assembly-output: emit-asm
|
|
//@ compile-flags: --crate-type cdylib -C debuginfo=2
|
|
//@ only-nvptx64
|
|
|
|
// Tests related to debug symbols for nvptx
|
|
|
|
#![feature(abi_ptx)]
|
|
#![no_std]
|
|
|
|
//@ aux-build: breakpoint-panic-handler.rs
|
|
extern crate breakpoint_panic_handler;
|
|
|
|
#[no_mangle]
|
|
pub extern "ptx-kernel" fn foo() {
|
|
panic!("bar");
|
|
}
|
|
|
|
// We make sure that all debug sections are available and visit them
|
|
// CHECK: .section .debug_abbrev
|
|
// CHECK: .section .debug_info
|
|
|
|
// Issue #99248 describes a bug where `.` was used as a seperator
|
|
// instead of `_` for `anon`s in `.debug_info`
|
|
// CHECK-NOT: anon.
|