blob: 9bc6cfa354da3c30e0dc002f71227c80c7e53675 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
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);
}
|