diff options
Diffstat (limited to 'util/romcc/tests/simple_test49.c')
-rw-r--r-- | util/romcc/tests/simple_test49.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/util/romcc/tests/simple_test49.c b/util/romcc/tests/simple_test49.c new file mode 100644 index 0000000000..a5a12c1cd8 --- /dev/null +++ b/util/romcc/tests/simple_test49.c @@ -0,0 +1,15 @@ + +static void main(void) +{ + int i; + i = __builtin_inb(0x1234); + if (i == 23) { + for(;;) { + int j; + j = __builtin_inb(0xabcd); + __builtin_outb(j, 0xef90); + } + } + __builtin_outb(i, 0x5678); + +} |