PR c++/67273
[official-gcc.git] / gcc / testsuite / gcc.target / arm / pr56732-1.c
blobac8b8cf6708ef51729a1c08088d3558c17982ae0
1 /* { dg-do compile } */
2 /* { dg-require-effective-target naked_functions } */
3 /* { dg-options "-O2 -Wall" } */
4 extern void bar();
6 void __attribute__((__naked__))
7 foo(void)
9 bar ();
12 int __attribute__((naked))
13 zoo (int a, int b, int c, int d, int e, int f)
15 bar ();
16 return e;
18 /* Verify that __attribute__((naked)) produces a naked function that
19 does not use bx to return. */
20 /* { dg-final { scan-assembler-not "\tbx\tlr" } } */