統合テストに、最新版Autotest.mkを反映
[YACASL2.git] / test / unit / CERRARRAY.c
1 #include "cerr.h"
2
3 /* エラー番号とエラーメッセージ */
4 CERR cerr_utest[] = {
5     { 101, "label already defined" },
6     { 102, "label table is full" },
7     { 103, "label not found" },
8     { 104, "label length is too long" },
9     { 105, "no command in the line" },
10     { 106, "operand count mismatch" },
11     { 107, "no label in START" },
12     { 108, "not command of operand \"r\"" },
13     { 109, "not command of operand \"r1,r2\"" },
14     { 110, "not command of operand \"r,adr[,x]\"" },
15     { 111, "not command of operand \"adr[,x]\"" },
16     { 112, "not command of no operand" },
17     { 113, "command not defined" },
18     { 114, "not integer" },
19     { 115, "not hex" },
20     { 116, "out of hex range" },
21     { 117, "operand is too many" },
22     { 118, "operand length is too long" },
23     { 119, "out of COMET II memory" },
24     { 120, "GR0 in operand x" },
25     { 121, "cannot get operand token" },
26     { 122, "cannot create hash table" },
27     { 123, "unclosed quote" },
28     { 124, "more than one character in literal" },
29     { 125, "not GR in operand x" },
30     { 201, "execute - out of COMET II memory" },
31     { 202, "SVC input - out of Input memory" },
32     { 203, "SVC output - out of COMET II memory" },
33     { 204, "Program Register (PR) - out of COMET II memory" },
34     { 205, "Stack Pointer (SP) - cannot allocate stack buffer" },
35     { 206, "Address - out of COMET II memory" },
36     { 207, "Stack Pointer (SP) - out of COMET II memory" },
37 };
38
39 void addcerr_utest()
40 {
41     addcerrlist((sizeof(cerr_utest)/sizeof(cerr_utest[0])), cerr_utest);
42 }