blob: 57ae75ef73a7700ec3fe321ea31e458b55585b34 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
/* { dg-do compile } */
/* { dg-require-effective-target vect_int } */
/* { dg-options "-O2 -mdejagnu-cpu=power9" } */
/* Verify it emits error message on inlining even without LTO. */
vector int c, a, b;
static inline void __attribute__ ((__always_inline__))
foo () /* { dg-error "inlining failed in call to .* target specific option mismatch" } */
{
c = a + b;
}
__attribute__ ((target ("cpu=power8")))
int main ()
{
foo (); /* { dg-message "called from here" } */
c = a + b;
}
|