Ticket #4544: test.mos

File test.mos, 371 bytes (added by Per Östlund, 7 years ago)

Test case

Line 
1setCommandLineOptions("-g=MetaModelica, -d=gen");
2
3loadString("
4 function test
5 output Boolean b;
6 protected
7 String s = \"test\";
8 Integer i;
9 algorithm
10 (b, s) := match s
11 case \"test\"
12 then match s
13 case \"test\" then (true, \"test\");
14 end match;
15 end match;
16 end test;
17"); getErrorString();
18
19test(); getErrorString();