Skip to content
This repository has been archived by the owner on Apr 3, 2019. It is now read-only.

Commit

Permalink
Update nfinst tests.
Browse files Browse the repository at this point in the history
Belonging to [master]:
  - OpenModelica/OMCompiler#2107
  - #821
  • Loading branch information
perost authored and OpenModelica-Hudson committed Jan 12, 2018
1 parent eb0d38c commit 6d6e41b
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 0 deletions.
17 changes: 17 additions & 0 deletions flattening/modelica/scodeinst/BuiltinAttribute12.mo
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// name: BuiltinAttribute12
// keywords:
// status: correct
// cflags: -d=newInst
//

model BuiltinAttribute12
type MyReal = Real(start = 1.0);
type MyReal2 = MyReal;
MyReal x;
end BuiltinAttribute12;

// Result:
// class BuiltinAttribute12
// Real x(start = 1.0);
// end BuiltinAttribute12;
// endResult
16 changes: 16 additions & 0 deletions flattening/modelica/scodeinst/BuiltinAttribute13.mo
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// name: BuiltinAttribute13
// keywords:
// status: correct
// cflags: -d=newInst
//

model BuiltinAttribute13
type MyReal = Real[3](start = {1.0, 2.0, 3.0});
MyReal x;
end BuiltinAttribute13;

// Result:
// class BuiltinAttribute12
// Real x(start = 1.0);
// end BuiltinAttribute12;
// endResult
2 changes: 2 additions & 0 deletions flattening/modelica/scodeinst/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ BuiltinAttribute8.mo \
BuiltinAttribute9.mo \
BuiltinAttribute10.mo \
BuiltinAttribute11.mo \
BuiltinAttribute12.mo \
BuiltinLookup1.mo \
BuiltinTime.mo \
ceval1.mo \
Expand Down Expand Up @@ -513,6 +514,7 @@ Wild1.mo \
# test that currently fail. Move up when fixed.
# Run make testfailing
FAILINGTESTFILES=\
BuiltinAttribute13.mo \
CevalDer2.mo \
ActualStream.mo \
ActualStreamMinMax.mo \
Expand Down

0 comments on commit 6d6e41b

Please sign in to comment.