blob: 1931f2cc8e4af713f68164c3c02e150daa71a020 [file] [log] [blame]
/* { dg-do compile { target struct_musttail } } */
/* { dg-additional-options "-fdelayed-branch" { target sparc*-*-* } } */
struct str
{
int a, b;
};
struct str
cstruct (int x)
{
if (x < 10)
L:
__attribute__((musttail)) return cstruct (x + 1); /* { dg-warning "'musttail' attribute ignored" "" { target c } } */
return ((struct str){ x, 0 });
}