1 /* { dg-do compile } */
3 /* Check that, when strub is not supported (so no dg-required-effective-target
4 strub above), we report when strub functions that are not defined are
5 called. This cannot be part of strub-unsupported-2.c because errors in the
6 strub-mode pass prevent the main strub pass, where errors at calls are
7 detected, from running. */
9 extern void __attribute__ ((__strub__
))
10 s (void); /* { dg-message "not eligible|requested" "" { target { ! strub } } } */
12 extern void __attribute__ ((__strub__ ("internal")))
13 t (void); /* { dg-message "not eligible|requested" "" { target { ! strub } } } */