blob: 9a78f62c98cacf2ccaf765047491131d1dee9a73 [file] [log] [blame]
/* { dg-do compile } */
/* { dg-options "-mno-sse3" } */
/* callee cannot be inlined into caller because it has a higher target ISA. */
__attribute__((always_inline,target("sse4.2")))
__inline int callee () /* { dg-error "inlining failed in call to 'always_inline'" } */
{
return 0;
}
__attribute__((target("sse")))
static __inline int caller ()
{
return callee(); /* { dg-message "called from here" } */
}
int main ()
{
return caller();
}