Moved tests into appropriate subdirs.
[AROS.git] / test / clib / exit.c
blob97f0ee5d37d941fd9b66370a2993ef2f61fc895b
1 /*
2 Copyright © 2013-2014, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include <stdio.h>
7 #include <stdlib.h>
9 #include <aros/debug.h>
11 static unsigned int level = 0;
13 int main(void)
15 bug("Nest level: %u\n", ++level);
17 if (level < 20)
18 main();
20 bug("About to call exit()...\n");
22 exit(0);
24 bug("exit() did not work!\n");
25 return 20;