Skip to content

Commit

Permalink
[NF] Add ceval test for Integer().
Browse files Browse the repository at this point in the history
  • Loading branch information
perost authored and OpenModelica-Hudson committed Apr 27, 2018
1 parent bdad486 commit a523321
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
21 changes: 21 additions & 0 deletions flattening/modelica/scodeinst/CevalIntegerEnum1.mo
@@ -0,0 +1,21 @@
// name: CevalIntegerEnum1
// keywords:
// status: correct
// cflags: -d=newInst
//
//

model CevalIntegerEnum1
type E = enumeration(one, two, three);
constant Integer i1 = Integer(E.one);
constant Integer i2 = Integer(E.two);
constant Integer i3 = Integer(E.three);
end CevalIntegerEnum1;

// Result:
// class CevalIntegerEnum1
// constant Integer i1 = 1;
// constant Integer i2 = 2;
// constant Integer i3 = 3;
// end CevalIntegerEnum1;
// endResult
1 change: 1 addition & 0 deletions flattening/modelica/scodeinst/Makefile
Expand Up @@ -70,6 +70,7 @@ CevalFloor1.mo \
CevalIdentity1.mo \
CevalIf1.mo \
CevalInteger1.mo \
CevalIntegerEnum1.mo \
CevalLog101.mo \
CevalLog102.mo \
CevalLog1.mo \
Expand Down

0 comments on commit a523321

Please sign in to comment.