/picolibc-3.7.0-3.6.0/test/ |
D | test-strchr.c | 42 #define check(func, needle, expect) do { \ argument 47 if (result != expect) { \ 49 #func, haystack, needle, result, expect); \ 55 #define many_check(func, needle, expect) do { \ argument 56 check(func, needle, expect); \ 57 check(func, needle | 0xff00, expect); \ 58 check(func, needle | 0x0100, expect); \ 59 check(func, needle | 0x8000, expect); \ 62 #define many_check(func, needle, expect) do { \ argument 63 check(func, needle, expect); \ [all …]
|
D | printf_scanf.c | 149 int expect; member 151 { .str = L"foo\n", .fmt = L"foo\nbar", .expect = -1 }, 152 { .str = L"foo\n", .fmt = L"foo bar", .expect = -1 }, 153 { .str = L"foo\n", .fmt = L"foo %d", .expect = -1 }, 154 { .str = L"foo\n", .fmt = L"foo\n%d", .expect = -1 }, 155 { .str = L"foon", .fmt = L"foonbar", .expect = -1 }, 156 { .str = L"foon", .fmt = L"foon%d", .expect = -1 }, 157 { .str = L"foo ", .fmt = L"foo bar", .expect = -1 }, 158 { .str = L"foo ", .fmt = L"foo %d", .expect = -1 }, 159 { .str = L"foo\t", .fmt = L"foo\tbar", .expect = -1 }, [all …]
|
D | long_double.c | 49 within_error(long double expect, long double result, long double error) in within_error() argument 54 if (isnan(expect) && isnan(result)) in within_error() 57 if (expect == result) in within_error() 60 if (expect != 0) in within_error() 61 e = scalbnl(1.0L, -ilogbl(expect)); in within_error() 63 difference = fabsl(expect - result) * e; in within_error() 72 check_long_double(const char *name, int i, long double prec, long double expect, long double result) in check_long_double() argument 74 if (!within_error(expect, result, prec)) { in check_long_double() 75 long double diff = fabsl(expect - result); in check_long_double() 78 printf("%s test %d got %La expect %La diff %La\n", name, i, result, expect, diff); in check_long_double() [all …]
|
D | printf-tests.c | 51 static int test(int serial, char *expect, char *fmt, ...) { in test() argument 121 if (n != (int) strlen(expect)) { in test() 123 expect, (int) strlen(expect), buf, n); in test() 127 if (strcmp(buf, expect)) { in test() 128 failmsg(serial, "expected \"%s\", got \"%s\"", expect, buf); in test() 160 static int testw(int serial, wchar_t *expect, wchar_t *fmt, ...) { in testw() argument 215 if (n != (int) wcslen(expect)) { in testw() 217 expect, wcslen(expect), wbuf, n); in testw() 221 if (wcscmp(wbuf, expect)) { in testw() 222 failmsgw(serial, L"expected \"%ls\", got \"%ls\"", expect, wbuf); in testw()
|
D | test-put.c | 43 check(char *label, bool ok, int expect, int got) in check() argument 46 fprintf(stderr, "%s: expect %d got %d\n", label, expect, got); in check() 53 check_s(char *label, bool ok, size_t expect, size_t got) in check_s() argument 56 fprintf(stderr, "%s: expect %zd got %zd\n", label, expect, got); in check_s()
|
D | ffs.c | 88 check(long long int x, int got, int expect, char *which) in check() argument 92 if (got != expect) { in check() 93 printf("failed %s(%08lx%08lx): got %d expect %d\n", which, high, low, got, expect); in check()
|
D | test-efcvt.c | 46 char *expect; member 188 if (strcmp(buf, tests[i].expect) != 0 || \ 194 tests[i].expect, tests[i].decpt, tests[i].sign); \
|
D | test-memset.c | 76 expect(size_t pos) in expect() function 96 e = expect(p); in check() 136 buf[p] = expect(p); in fill()
|
D | rounding-mode.c | 268 #define check_sqrt(mode, param, expect) do { \ in main() argument 271 double __e = (expect); \ in main() 312 #define check_sqrtf(mode, param, expect) do { \ in main() argument 315 float __e = (expect); \ in main()
|
D | test-fread-fwrite.c | 240 uint8_t expect = out[read_offset + i]; in main() local 242 expect++; in main() 243 if (in[read_offset + i] != expect) { in main()
|
/picolibc-3.7.0-3.6.0/test/semihost/ |
D | semihost-readc.c | 43 char *expect = COMMAND_LINE; in main() local 48 while ((e = *expect++) != '\0') { in main()
|
/picolibc-3.7.0-3.6.0/test/libc-testsuite/ |
D | snprintf.c | 51 const char *expect; member 98 const char *expect; member 210 TEST_S(b, int_tests[j].expect, "bad integer conversion"); in test_snprintf() 218 TEST_S(b, fp_tests[j].expect, "bad floating point conversion"); in test_snprintf()
|
/picolibc-3.7.0-3.6.0/ |
D | meson.build | 70 # detecting many C compiler features, as we cannot expect there
|
/picolibc-3.7.0-3.6.0/newlib/ |
D | ChangeLog-2015 | 22638 expect that the handles for stdout and stderr will be 1 and 2. 26287 expect code for specific platforms tie it all together.
|