diff --git a/tests/test_expcodes.m b/tests/test_expcodes.m
index c1460ff7e47e1bbd58ab0d788f92240f597149d9..874affbfcc67499011ff23da5aad6266b7b16878 100644
--- a/tests/test_expcodes.m
+++ b/tests/test_expcodes.m
@@ -43,5 +43,11 @@ classdef test_expcodes < matlab.unittest.TestCase
       testCase.assertTrue(true); % dummy
     end
     
+   function test_compilation(testCase)
+     node_to_compile = 'SCD_rtccode_02_02';
+     load_system(node_to_compile);
+     SCDconf_setCODEconf;
+     rtwbuild(node_to_compile);
+   end
   end
 end