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