| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-options "-fstrub=relaxed -fbranch-probabilities" } */ |
| 3 |
/* { dg-require-effective-target strub } */ |
| 4 |
|
| 5 |
/* Same as torture/strub-inlineable1.c, but with -fbranch-probabilities, to |
| 6 |
check that IPA tree-profiling won't ICE. It would when we refrained from |
| 7 |
running passes that would take it to IPA_SSA, but ran the pass that asserted |
| 8 |
for IPA_SSA. */ |
| 9 |
|
| 10 |
inline void __attribute__ ((strub ("internal"), always_inline)) |
| 11 |
inl_int_ali (void) |
| 12 |
{ |
| 13 |
/* No internal wrapper, so this body ALWAYS gets inlined, |
| 14 |
but it cannot be called from non-strub contexts. */ |
| 15 |
} |
| 16 |
|
| 17 |
void |
| 18 |
bat (void) |
| 19 |
{ |
| 20 |
/* Not allowed, not a strub context. */ |
| 21 |
inl_int_ali (); /* { dg-error "context" } */ |
| 22 |
} |