アセンブラファイルとテストの整理
[YACASL2.git] / test / unit / print_code_type / print_code_type.c
diff --git a/test/unit/print_code_type/print_code_type.c b/test/unit/print_code_type/print_code_type.c
new file mode 100644 (file)
index 0000000..e6a96db
--- /dev/null
@@ -0,0 +1,13 @@
+#include "casl2.h"
+int main(){
+    puts("== CODE_TYPE TABLE ==");
+    create_code_type();
+    print_code_type();
+    free_code_type();
+    if(cerrno != 0) {
+        printf("\terror - %d: %s\n", cerrno, cerrmsg);
+        freecerr();
+        exit(-1);
+    }
+    return 0;
+}