aboutsummaryrefslogtreecommitdiff
path: root/tests/tcg/multiarch/system/interrupt.c
blob: 98d4f2eff9f222001d6e7bd2b837b0e49b0710b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*
 * External interruption test. This test is structured in such a way that it
 * passes the cases that require it to exit, but we can make it enter an
 * infinite loop from GDB.
 *
 * We don't have the benefit of libc, just builtin C primitives and
 * whatever is in minilib.
 */

#include <minilib.h>

void loop(void)
{
    do {
        /*
         * Loop forever. Just make sure the condition is always a constant
         * expression, so that this loop is not UB, as per the C
         * standard.
         */
    } while (1);
}

int main(void)
{
    return 0;
}