PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / naked-4.c
blob07b32424f5f4c9465fcbaff7fd688512165fed81
1 /* { dg-do compile } */
2 /* { dg-options "-O0" } */
3 /* { dg-additional-options "-mregparm=3" { target ia32 } } */
5 /* Verify that __attribute__((naked)) produces a naked function
6 that does not allocate stack slots for args. */
7 extern void bar (int);
9 int
10 __attribute__((naked))
11 foo (int a, int b, int c)
13 bar (c);
14 asm volatile ("ret" :: "a" (b));
17 /* { dg-final { scan-assembler-not "%\[re\]bp" } } */