8sa1-gcc/gcc/testsuite/gcc.c-torture/execute/961223-1.c
Jeff Law 921e5a0eb4 Initial revision
From-SVN: r14840
1997-08-19 01:34:40 -06:00

20 lines
186 B
C

struct s {
double d;
};
inline struct s
sub (struct s s)
{
s.d += 1.0;
return s;
}
main ()
{
struct s t = { 2.0 };
t = sub (t);
if (t.d != 3.0)
abort ();
exit (0);
}