mirror of
https://github.com/nArnoSNES/tcc-65816.git
synced 2024-06-13 04:29:31 +00:00
20 lines
186 B
C
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);
|
|
}
|