blob: ac8b8cf6708ef51729a1c08088d3558c17982ae0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
/* { dg-do compile } */
/* { dg-require-effective-target naked_functions } */
/* { dg-options "-O2 -Wall" } */
extern void bar();
void __attribute__((__naked__))
foo(void)
{
bar ();
}
int __attribute__((naked))
zoo (int a, int b, int c, int d, int e, int f)
{
bar ();
return e;
}
/* Verify that __attribute__((naked)) produces a naked function that
does not use bx to return. */
/* { dg-final { scan-assembler-not "\tbx\tlr" } } */
|