mirror of
https://github.com/nArnoSNES/tcc-65816.git
synced 2024-06-11 22:29:28 +00:00
33 lines
405 B
C
33 lines
405 B
C
/* Distilled from optimization/863. */
|
|
|
|
extern void abort (void);
|
|
extern void exit (int);
|
|
extern void ok (int);
|
|
|
|
typedef struct
|
|
{
|
|
int x, y, z;
|
|
} Data;
|
|
|
|
void find (Data *first, Data *last)
|
|
{
|
|
int i;
|
|
for (i = (last - first) >> 2; i > 0; --i)
|
|
ok(i);
|
|
abort ();
|
|
}
|
|
|
|
void ok(int i)
|
|
{
|
|
if (i != 1)
|
|
abort ();
|
|
exit (0);
|
|
}
|
|
|
|
int
|
|
main ()
|
|
{
|
|
Data DataList[4];
|
|
find (DataList + 0, DataList + 4);
|
|
}
|