Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'libgloss/testsuite/libgloss.all/printf.c')
-rw-r--r--libgloss/testsuite/libgloss.all/printf.c31
1 files changed, 31 insertions, 0 deletions
diff --git a/libgloss/testsuite/libgloss.all/printf.c b/libgloss/testsuite/libgloss.all/printf.c
new file mode 100644
index 000000000..4aff104a1
--- /dev/null
+++ b/libgloss/testsuite/libgloss.all/printf.c
@@ -0,0 +1,31 @@
+/* Oki bug report [OKI006]
+
+ The following program is no work.
+
+ illegal trap: 0x12 pc=d000d954
+ d000d954 08000240 NOP
+ */
+
+#include <stdio.h>
+
+main ()
+{
+ int i, j, k;
+
+ print ("\r\nDemo Program Start\r\n");
+ printf ("Value = %d, %d\r\n", 2, 1);
+ pass ("printf [OKI006]");
+
+/* Oki bug report [OKI007]
+
+ iprintf is no work.
+ "Value = 2, 1" string is not displayed.
+
+ break instruction trap (9) pc=4003c
+ 0004003c 00000000 BREAK 0x0,0x0
+ */
+ print ("\r\nDemo Program Start\r\n");
+ iprintf ("Value = %d, %d\r\n", 2, 1);
+ pass ("iprintf [OKI007]");
+ fflush (stdout);
+}