Skip to content

Commit

Permalink
Added test for nfinst StateSelect variability.
Browse files Browse the repository at this point in the history
  • Loading branch information
perost authored and OpenModelica-Hudson committed Nov 6, 2017
1 parent f4b81eb commit d69fb20
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions flattening/modelica/scodeinst/Makefile
Expand Up @@ -343,6 +343,7 @@ SizeInvalidIndex4.mo \
SizeInvalidType1.mo \
SizeInvalidType2.mo \
StatementInvalidType1.mo \
StateSelectVariability1.mo \
SubscriptEnum1.mo \
SubscriptIterator1.mo \
Subscript1.mo \
Expand Down
15 changes: 15 additions & 0 deletions flattening/modelica/scodeinst/StateSelectVariability1.mo
@@ -0,0 +1,15 @@
// name: StateSelectVariability1
// keywords:
// status: correct
// cflags: -d=newInst
//

model StateSelectVariability1
constant StateSelect s = StateSelect.never;
end StateSelectVariability1;

// Result:
// class StateSelectVariability1
// constant enumeration(never, avoid, default, prefer, always) s = StateSelect.never;
// end StateSelectVariability1;
// endResult

0 comments on commit d69fb20

Please sign in to comment.