PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr57756.c
blob25c565c879a2cf4305faa04853d001f08890d597
1 /* { dg-do compile } */
2 /* { dg-options "-mno-sse3" } */
4 /* callee cannot be inlined into caller because it has a higher target ISA. */
5 __attribute__((always_inline,target("sse4.2")))
6 __inline int callee () /* { dg-error "inlining failed in call to always_inline" } */
8 return 0;
11 __attribute__((target("sse")))
12 static __inline int caller ()
14 return callee(); /* { dg-message "called from here" } */
17 int main ()
19 return caller();