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)) foo(void)7foo(void) 8 { 9 __asm__ (""); 10 } 11 12 int __attribute__((naked,noreturn)) bar(void)13bar(void) 14 { 15 __asm__ (""); 16 } 17