]>
Commit | Line | Data |
---|---|---|
cdc7bbd5 | 1 | // needs-asm-support |
fc512014 | 2 | #![feature(asm, naked_functions)] |
e74abb32 | 3 | |
ba9703b0 | 4 | #[track_caller] //~ ERROR cannot use `#[track_caller]` with `#[naked]` |
e74abb32 | 5 | #[naked] |
fc512014 XL |
6 | extern "C" fn f() { |
7 | asm!("", options(noreturn)); | |
8 | } | |
ba9703b0 XL |
9 | |
10 | struct S; | |
11 | ||
12 | impl S { | |
13 | #[track_caller] //~ ERROR cannot use `#[track_caller]` with `#[naked]` | |
14 | #[naked] | |
fc512014 XL |
15 | extern "C" fn g() { |
16 | asm!("", options(noreturn)); | |
17 | } | |
ba9703b0 | 18 | } |
e74abb32 XL |
19 | |
20 | fn main() {} |