Debian Codegraph @

gcc/testsuite/gcc.c-torture/compile/regs-arg-size.c

raw
1 /* { dg-skip-if "exceeds eBPF stack limit" { bpf-*-* } } */
2 /* { dg-additional-options "-fpermissive" } */
3
4 int foo;
5 typedef long unsigned int size_t;
6 typedef short unsigned int wchar_t;
7 extern int swprintf (wchar_t *wcs, size_t maxlen, const wchar_t *format, ...);
8 struct tm
9 {
10 int tm_mday;
11 int tm_mon;
12 int tm_year;
13 };
14 size_t
15 __strftime (wchar_t * s, size_t maxsize, const wchar_t * format, const struct tm *tim_p)
16 {
17 size_t count = 0;
18 int len = 0;
19 size_t i, ctloclen;
20 unsigned long width;
21 {
22 if (foo)
23 {
24 {
25 wchar_t *fmt = L"%s%.*d";
26 len = swprintf (&s[count], maxsize, fmt, "-", width, 0);
27 }
28 if ((count) >= maxsize)
29 return 0;
30 }
31 else
32 {
33 len =
34 swprintf (&s[count], maxsize - count, L"%.2d/%.2d/%.2d", 42, 99, 0);
35 if ((count) >= maxsize)
36 return 0;
37
38 }
39 }
40 }