/* { 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(); | |
} |