Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.c-torture/compile/regs-arg-size.c @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | 1830386684a0 |
children |
line wrap: on
line source
/* { dg-skip-if "exceeds eBPF stack limit" { bpf-*-* } } */ int foo; typedef long unsigned int size_t; typedef short unsigned int wchar_t; extern int swprintf (wchar_t *wcs, size_t maxlen, const wchar_t *format, ...); struct tm { int tm_mday; int tm_mon; int tm_year; }; size_t __strftime (wchar_t * s, size_t maxsize, const wchar_t * format, const struct tm *tim_p) { size_t count = 0; int len = 0; size_t i, ctloclen; unsigned long width; { if (foo) { { wchar_t *fmt = L"%s%.*d"; len = swprintf (&s[count], maxsize, fmt, "-", width, 0); } if ((count) >= maxsize) return 0; } else { len = swprintf (&s[count], maxsize - count, L"%.2d/%.2d/%.2d", 42, 99, 0); if ((count) >= maxsize) return 0; } } }