about summary refs log tree commit diff
path: root/tests/assembly-llvm/breakpoint.rs
blob: d119b68e899baed8b961ab448a3faca521618cd7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//@ revisions: aarch64 x86_64
//@ assembly-output: emit-asm
//@[aarch64] only-aarch64
//@[x86_64] only-x86_64

#![feature(breakpoint)]
#![crate_type = "lib"]

// CHECK-LABEL: use_bp
// aarch64: brk #0xf000
// x86_64: int3
#[inline(never)]
pub fn use_bp() {
    core::arch::breakpoint();
}