blob: 4b3abb7d8fe9afd9d31b840299a8d536c03896bb [file] [log] [blame]
/* { dg-do compile } */
/* { dg-options "-O2 -flto -mvsx" } */
/* { dg-require-effective-target lto } */
vector int c, a, b;
static inline void __attribute__ ((__always_inline__, target ("no-vsx")))
foo () /* { dg-error "inlining failed in call to .* target specific option mismatch" } */
{
c = a + b;
}
int
main ()
{
foo (); /* { dg-message "called from here" } */
c = a + b;
}