mirror of
https://github.com/nArnoSNES/tcc-65816.git
synced 2024-05-31 22:41:28 +00:00
24 lines
212 B
C
24 lines
212 B
C
typedef struct
|
|
{
|
|
char x;
|
|
} T;
|
|
|
|
T
|
|
f (s1)
|
|
T s1;
|
|
{
|
|
T s1a;
|
|
s1a.x = 17;
|
|
return s1a;
|
|
}
|
|
|
|
main ()
|
|
{
|
|
T s1a, s1b;
|
|
s1a.x = 13;
|
|
s1b = f (s1a);
|
|
if (s1a.x != 13 || s1b.x != 17)
|
|
abort ();
|
|
exit (0);
|
|
}
|