aboutsummaryrefslogtreecommitdiff
path: root/util/romcc/tests/simple_test23.c
diff options
context:
space:
mode:
Diffstat (limited to 'util/romcc/tests/simple_test23.c')
-rw-r--r--util/romcc/tests/simple_test23.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/util/romcc/tests/simple_test23.c b/util/romcc/tests/simple_test23.c
new file mode 100644
index 0000000000..33acd047a2
--- /dev/null
+++ b/util/romcc/tests/simple_test23.c
@@ -0,0 +1,18 @@
+static void print(char *str)
+{
+ while(1) {
+ unsigned char ch;
+ ch = *str;
+ if (ch == '\0') {
+ break;
+ }
+ __builtin_outb(ch, 0x1234);
+ str += 1;
+ }
+}
+
+static void main(void)
+{
+ print("hello world\r\n");
+ print("how are you today\r\n");
+}