strub: enable conditional support
[official-gcc.git] / gcc / testsuite / c-c++-common / torture / strub-inlinable1.c
blob4917dda8826d980497ed2e821059347a53097f95
1 /* { dg-do compile } */
2 /* { dg-options "-fstrub=relaxed" } */
3 /* { dg-require-effective-target strub } */
5 inline void __attribute__ ((strub ("internal"), always_inline))
6 inl_int_ali (void)
8 /* No internal wrapper, so this body ALWAYS gets inlined,
9 but it cannot be called from non-strub contexts. */
12 void
13 bat (void)
15 /* Not allowed, not a strub context. */
16 inl_int_ali (); /* { dg-error "context" } */