1 #include <exec/tasks.h>
3 #include <proto/exec.h>
7 int __nocommandline
= 1;
12 struct Task
*t
= FindTask(NULL
);
14 printf("Attempting weird suicide...\n");
16 /* Simulate runaway stack */
17 t
->tc_SPLower
= (APTR
)10;
18 t
->tc_SPUpper
= (APTR
)16;
20 for (i
= 1; i
< 6; i
++)
23 /* Delay() should eventually end up in core_Dispatch() which should kill us */
27 printf("Stack checking FAILED! GO FIX IT!\n");