1b3e94a20d
From release 0.1.0 pre-patched archive. This includes all Red Bear modifications previously maintained as patches in local/patches/relibc/.
24 lines
431 B
C
24 lines
431 B
C
#include <stdlib.h>
|
|
|
|
#include "test_helpers.h"
|
|
|
|
volatile float f;
|
|
volatile long double ld;
|
|
volatile unsigned long long ll;
|
|
lldiv_t mydivt;
|
|
|
|
int main(void) {
|
|
char* tmp;
|
|
f = strtof("gnu", &tmp);
|
|
ld = strtold("gnu", &tmp);
|
|
ll = strtoll("gnu", &tmp, 10);
|
|
ll = strtoull("gnu", &tmp, 10);
|
|
ll = llabs(10);
|
|
mydivt = lldiv(10,1);
|
|
ll = mydivt.quot;
|
|
ll = mydivt.rem;
|
|
ll = atoll("10");
|
|
_Exit(0);
|
|
}
|
|
|