Debian Codegraph @

gcc/testsuite/c-c++-common/torture/strub-inlinable1.c

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