gcc/testsuite/gcc.target/i386/pr69246.c
raw| 1 | /* { dg-do compile { target ia32 } } */ |
| 2 | /* { dg-options "-O2" } */ |
| 3 | |
| 4 | void (__attribute__ ((stdcall)) *a) (int); |
| 5 | |
| 6 | void __attribute__ ((stdcall)) |
| 7 | foo (int x) |
| 8 | { |
| 9 | a (x); |
| 10 | } |
| 11 | |
| 12 | int (__attribute__ ((stdcall)) *b) (int); |
| 13 | |
| 14 | int __attribute__ ((stdcall)) |
| 15 | bar (int x) |
| 16 | { |
| 17 | return b (x); |
| 18 | } |