統合テストに、最新版Autotest.mkを反映
[YACASL2.git] / test / unit / print_cerrmsg / print_cerrmsg.c
1 #include <stdio.h>
2 #include "casl2.h"
3 #include "assemble.h"
4 #include "exec.h"
5
6 int main(){
7     CERRLIST *p;
8
9     addcerrlist_word();
10     addcerrlist_assemble();
11     addcerrlist_exec();
12     cerr = malloc_chk(sizeof(CERR), "cerr");    /* エラーの初期化 */
13     for(p = cerrlist; p != NULL; p = p->next) {
14         setcerr(p->cerr->num, NULL);
15         printf("%d: %s\n", cerr->num, cerr->msg);
16     }
17     freecerr();
18     return 0;
19 }