9 do_test (int argc
, char *argv
[])
12 (void) freopen (argc
== 1 ? "/dev/stdout" : argv
[1], "a", stderr
);
13 /* Orient the stream. */
14 fwprintf (stderr
, L
"hello world\n");
16 static const char str
[] = "hello world! ";
17 for (int i
= 0; i
< 1000; ++i
)
18 memcpy (&buf
[i
* (sizeof (str
) - 1)], str
, sizeof (str
));
21 /* We're testing a large format string here and need to generate it
22 to avoid this source file being ridiculous. So disable the warning
23 about a generated format string. */
24 DIAG_PUSH_NEEDS_COMMENT
;
25 DIAG_IGNORE_NEEDS_COMMENT (4.9, "-Wformat-security");
30 DIAG_POP_NEEDS_COMMENT
;
36 #define TEST_FUNCTION do_test (argc, argv)
37 #include "../test-skeleton.c"