Skip to content
Snippets Groups Projects
Commit b4f3eb4a authored by Johannes Pfeifer's avatar Johannes Pfeifer
Browse files

Add unit test for ifndef

parent 463516c8
No related branches found
No related tags found
No related merge requests found
...@@ -81,6 +81,7 @@ MODFILES = \ ...@@ -81,6 +81,7 @@ MODFILES = \
example2long.mod \ example2long.mod \
example2long_use_dll.mod \ example2long_use_dll.mod \
t_sgu_ex1.mod \ t_sgu_ex1.mod \
macro_processor/test_ifndef.mod \
irfs/example1_unit_std.mod \ irfs/example1_unit_std.mod \
optimal_policy/OSR/osr_example.mod \ optimal_policy/OSR/osr_example.mod \
optimal_policy/OSR/osr_example_objective_correctness.mod \ optimal_policy/OSR/osr_example_objective_correctness.mod \
......
// test ifndef to prevent regressions like #1747
@#define marco=1
@#ifndef marco
def=0;
@#else
def=1;
@#endif
if ~def
error('ifndef not reached')
end
var x;
model;
x;
end;
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment