summaryrefslogtreecommitdiff
path: root/util/romcc/tests/simple_test48.c
diff options
context:
space:
mode:
Diffstat (limited to 'util/romcc/tests/simple_test48.c')
-rw-r--r--util/romcc/tests/simple_test48.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/util/romcc/tests/simple_test48.c b/util/romcc/tests/simple_test48.c
new file mode 100644
index 0000000000..779ecfdc96
--- /dev/null
+++ b/util/romcc/tests/simple_test48.c
@@ -0,0 +1,13 @@
+
+static void main(void)
+{
+ int i;
+ i = __builtin_inb(0x1234);
+ goto next;
+ int j;
+ j = __builtin_inb(0xabcd);
+ __builtin_outb(j, 0xef90);
+ next:
+ __builtin_outb(i, 0x5678);
+
+}