blob: 9a29030a3b06c9cab83d84e895590c4d1ec70a3a [file] [log] [blame]
/* { dg-do compile { target { musttail && { c || c++11 } } } } */
float f1(void);
int f2(void)
{
[[gnu::musttail]] return f1 (); /* { dg-error "changed after call" } */
}
int f3(int *);
int f4(int *p)
{
int x;
(void) p;
[[gnu::musttail]] return f3(&x); /* { dg-warning "address of automatic variable 'x' passed to 'musttail' call argument" } */
}