aboutsummaryrefslogtreecommitdiff
path: root/util/romcc/tests/linux_test6.c
diff options
context:
space:
mode:
Diffstat (limited to 'util/romcc/tests/linux_test6.c')
-rw-r--r--util/romcc/tests/linux_test6.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/util/romcc/tests/linux_test6.c b/util/romcc/tests/linux_test6.c
new file mode 100644
index 0000000000..f93ab9273d
--- /dev/null
+++ b/util/romcc/tests/linux_test6.c
@@ -0,0 +1,17 @@
+#include "linux_syscall.h"
+#include "linux_console.h"
+
+static void main(void)
+{
+ static const int value[] = { 1, 0 };
+ const char *str;
+ if (value[1]) {
+ print_debug("A\r\n");
+ str = "Unbuffered\r\n";
+ } else {
+ print_debug("B\r\n");
+ str = "Registered\r\n";
+ }
+ print_debug(str);
+ _exit(0);
+}