mirror of
https://github.com/nArnoSNES/tcc-65816.git
synced 2024-05-31 22:41:28 +00:00
27 lines
324 B
C
27 lines
324 B
C
struct A {
|
|
unsigned int a, b, c;
|
|
};
|
|
|
|
extern void abort (void);
|
|
extern void exit (int);
|
|
|
|
struct A bar (void)
|
|
{
|
|
return (struct A) { 176, 52, 31 };
|
|
}
|
|
|
|
void baz (struct A *a)
|
|
{
|
|
if (a->a != 176 || a->b != 52 || a->c != 31)
|
|
abort ();
|
|
}
|
|
|
|
int main ()
|
|
{
|
|
struct A d;
|
|
|
|
d = ({ ({ bar (); }); });
|
|
baz (&d);
|
|
exit (0);
|
|
}
|