Fix typo in macro names in sysconf.c
[glibc.git] / stdlib / bug-fmtmsg1.c
blob04bfaea3ce7f0ae89c12e6de1a2e01875ee8b182
1 #include <fmtmsg.h>
2 #include <stdio.h>
5 static int
6 do_test (void)
8 /* Ugly, but fmtmsg would otherwise print to stderr which we do not
9 want. */
10 fclose (stderr);
11 stderr = stdout;
13 int e1;
14 e1 = fmtmsg (MM_PRINT, "label:part", MM_WARNING, "text", "action", "tag");
16 int e2;
17 e2 = fmtmsg (MM_PRINT, "label2:part2", 11, "text2", "action2", "tag2");
19 addseverity (10, "additional severity");
21 int e3;
22 e3 = fmtmsg (MM_PRINT, "label3:part3", 10, "text3", "action3", "tag3");
24 return e1 != 0 || e2 != 0 || e3 != 0;
27 #define TEST_FUNCTION do_test ()
28 #include "../test-skeleton.c"