gcc/testsuite/gcc.target/i386/pr57293.c
raw| 1 | /* { dg-do compile { target ia32 } } */ |
| 2 | /* { dg-options "-O2 -fomit-frame-pointer" } */ |
| 3 | /* { dg-final { scan-assembler-not "%ebp" } } */ |
| 4 | |
| 5 | __attribute__((__noinline__, __noclone__, __stdcall__)) void g(int a) |
| 6 | { |
| 7 | __builtin_printf("in g(): %d\n", a); |
| 8 | } |
| 9 | |
| 10 | __attribute__((__noinline__, __noclone__, __thiscall__)) void h(int a, int b) |
| 11 | { |
| 12 | __builtin_printf("in h(): %d %d\n", a, b); |
| 13 | } |
| 14 | |
| 15 | void f() |
| 16 | { |
| 17 | g(0); |
| 18 | h(0, 1); |
| 19 | __builtin_puts("in f()"); |
| 20 | } |