Skip to content
Permalink
1f55ce483b
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
19 lines (17 sloc) 349 Bytes
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
static int
do_test (void)
{
char buf[100];
snprintf (buf, sizeof (buf), "%g", atof ("0x10p-1"));
if (strcmp (buf, "8") != 0)
{
printf ("got \"%s\", expected \"8\"\n", buf);
return 1;
}
return 0;
}
#define TEST_FUNCTION do_test ()
#include "../test-skeleton.c"