source:
trunk/src/libctests/glibc/stdlib/tst-fmtmsg.c@
2089
| Last change on this file since 2089 was 2036, checked in by , 20 years ago | |
|---|---|
|
|
| File size: 1.8 KB | |
| Line | |
|---|---|
| 1 | #include <fmtmsg.h> |
| 2 | #include <mcheck.h> |
| 3 | #include <stdio.h> |
| 4 | #include <stdlib.h> |
| 5 | #include <string.h> |
| 6 | |
| 7 | |
| 8 | #define MM_TEST 10 |
| 9 | |
| 10 | int |
| 11 | main (void) |
| 12 | { |
| 13 | int result = 0; |
| 14 | |
| 15 | mtrace (); |
| 16 | |
| 17 | char TEST[] = "ABCD"; |
| 18 | if (addseverity (MM_TEST, TEST) != MM_OK) |
| 19 | { |
| 20 | puts ("addseverity failed"); |
| 21 | result = 1; |
| 22 | } |
