summaryrefslogtreecommitdiff
path: root/stdio-common/bug16.c
blob: 42e37fa8b6f37e75cf47a7f7ec5c61ecda25ecdd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <stdio.h>
#include <string.h>

static int
do_test (void)
{
  char buf[100];
  snprintf (buf, sizeof (buf), "%.0LA", 0x0.FFFFp+0L);

  if (strcmp (buf, "0X1P+0") != 0)
    {
      printf ("got \"%s\", expected \"0X1P+0\"\n", buf);
      return 1;
    }

  return 0;
}

#define TEST_FUNCTION do_test ()
#include "../test-skeleton.c"