1 /* 2 * External interruption test. This test is structured in such a way that it 3 * passes the cases that require it to exit, but we can make it enter an 4 * infinite loop from GDB. 5 * 6 * We don't have the benefit of libc, just builtin C primitives and 7 * whatever is in minilib. 8 */ 9 10 #include <minilib.h> 11 12 void loop(void) 13 { 14 do { 15 /* 16 * Loop forever. Just make sure the condition is always a constant 17 * expression, so that this loop is not UB, as per the C 18 * standard. 19 */ 20 } while (1); 21 } 22 23 int main(void) 24 { 25 return 0; 26 } 27 28 29