1  /* { dg-do compile } */
       2  /* { dg-options "-O2 -mvsx" } */
       3  
       4  vector int c, a, b;
       5  
       6  static inline void __attribute__ ((__always_inline__, target ("no-vsx")))
       7  foo () /* { dg-error "inlining failed in call to .* target specific option mismatch" } */
       8  {
       9    c = a + b;
      10  }
      11  
      12  int
      13  main ()
      14  {
      15    foo (); /* { dg-message "called from here" } */
      16    c = a + b;
      17  }