Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/c-c++-common/pr54988.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
rev | line source |
---|---|
111 | 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 } |