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