]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
ast-test should also finalize functions directly
authorWolfgang (Blub) Bumiller <blub@speed.at>
Thu, 3 May 2012 12:04:35 +0000 (14:04 +0200)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Thu, 3 May 2012 12:04:35 +0000 (14:04 +0200)
test/ast-test.c

index 00e8c052e3220dba789651fde674f7473099ef97..1f8a7f6a0c6df533eeeae669bb3fe187d2e9d17c 100644 (file)
@@ -120,6 +120,8 @@ int main()
         if (!ast_function_codegen(functions_data[i], ir)) {
             assert(!"failed to generate function");
         }
+        if (!ir_function_finalize(functions_data[i]->ir_func))
+            assert(!"finalize on function failed...");
     }
 
     /* dump */