blob: d31962aa4542a626e7886c10561a256857bd855f [file] [log] [blame]
/* { dg-options "-fgnu89-inline" } */
extern void exit (int);
extern void abort (void);
struct s {
double d;
};
inline struct s
sub (struct s s)
{
s.d += 1.0;
return s;
}
int
main ()
{
struct s t = { 2.0 };
t = sub (t);
if (t.d != 3.0)
abort ();
exit (0);
}