Add checks for %#.0o and friends.
authordrepper <drepper>
Fri, 30 Jan 1998 11:23:13 +0000 (11:23 +0000)
committerdrepper <drepper>
Fri, 30 Jan 1998 11:23:13 +0000 (11:23 +0000)
stdio-common/tiformat.c

index 541ea43..bce4766 100644 (file)
@@ -9,7 +9,7 @@ typedef struct {
   const char *format_string;
 } sprint_int_type;
 
-sprint_int_type sprint_ints[] = 
+sprint_int_type sprint_ints[] =
 {
   {__LINE__, 0x000838d2,       "838d2", "%.4x"},
   {__LINE__, 0x0063be46,       "63BE46", "%-6X"},
@@ -5022,6 +5022,9 @@ sprint_int_type sprint_ints[] =
   {__LINE__, 0000123456,       "00123456", "%#.8o"},
   {__LINE__, 0000123456,       "  00123456", "%#10.8o"},
   {__LINE__, 0x00000123,       "0x00123", "%#07x"},
+  {__LINE__, 0x00000000,       "", "%#.0d"},
+  {__LINE__, 0x00000000,       "", "%#.0x"},
+  {__LINE__, 0x00000000,       "0", "%#.0o"},
 
   {0},
 };