gcc/testsuite/c-c++-common/pr53633.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-require-effective-target naked_functions } */ |
| 3 | /* { dg-options "-O2 -Wall" } */ |
| 4 | /* Check that we do not get warnings about missing return statements |
| 5 | or bogus looking noreturn functions. */ |
| 6 | int __attribute__((naked)) |
| 7 | foo(void) |
| 8 | { |
| 9 | __asm__ (""); |
| 10 | } |
| 11 | |
| 12 | int __attribute__((naked,noreturn)) |
| 13 | bar(void) |
| 14 | { |
| 15 | __asm__ (""); |
| 16 | } |