gcc/testsuite/c-c++-common/pr54988.c
raw| 1 | /* PR c++/54988 */ |
| 2 | /* { dg-do compile } */ |
| 3 | /* { dg-options "-O2" } */ |
| 4 | /* { dg-additional-options "-msse2" { target { i?86-*-* x86_64-*-* } } } */ |
| 5 | |
| 6 | #if defined(__i386__) || defined(__x86_64__) |
| 7 | #pragma GCC target "fpmath=sse" |
| 8 | #endif |
| 9 | |
| 10 | static inline __attribute__ ((always_inline)) int |
| 11 | foo (int x) |
| 12 | { |
| 13 | return x; |
| 14 | } |
| 15 | |
| 16 | int |
| 17 | bar (int x) |
| 18 | { |
| 19 | return foo (x); |
| 20 | } |