blob: 4917dda8826d980497ed2e821059347a53097f95 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
/* { dg-do compile } */
/* { dg-options "-fstrub=relaxed" } */
/* { dg-require-effective-target strub } */
inline void __attribute__ ((strub ("internal"), always_inline))
inl_int_ali (void)
{
/* No internal wrapper, so this body ALWAYS gets inlined,
but it cannot be called from non-strub contexts. */
}
void
bat (void)
{
/* Not allowed, not a strub context. */
inl_int_ali (); /* { dg-error "context" } */
}
|