1 /* { dg-do compile } */ 2 /* { dg-final { scan-assembler-not "push" } } */ 3 /* { dg-final { scan-assembler-not "pop" } } */ 4 5 /* Check that there is no prologue/epilogue code emitted for a function 6 with the naked attribute. Without the attribute, this function would 7 push/pop lr. */ 8 9 extern void g (int); 10 11 int __attribute__((naked)) f(int x)12f (int x) 13 { 14 g (x); 15 return 42; 16 } 17