Debian Codegraph @

gcc/testsuite/gcc.target/bpf/naked-2.c

raw
1 /* Verify that __attribute__((naked)) produces functions without implicit
2 `exit' instructions in the epilogue. */
3 /* { dg-do compile } */
4 /* { dg-options "-O0" } */
5
6 int __attribute__((naked)) foo()
7 {
8 __asm__ volatile ("exit");
9 }
10 /* { dg-final { scan-assembler-times "\texit" 1 } } */