Skip to content

Commit

Permalink
[NF] Add expandable connector test.
Browse files Browse the repository at this point in the history
Belonging to [master]:
  - #177
  - OpenModelica/OMCompiler#3088
  • Loading branch information
perost authored and OpenModelica-Hudson committed May 14, 2019
1 parent 3cd9411 commit 2f4840a
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
@@ -0,0 +1,27 @@
// name: ExpandableConnectorNonDecl4
// keywords: expandable connector
// status: incorrect
// cflags: -d=newInst
//
//

connector RealInput = input Real;

expandable connector EC
end EC;

model ExpandableConnectorNonDecl4
RealInput ri;
equation
connect(EC.ri, ri);
end ExpandableConnectorNonDecl4;

// Result:
// Error processing file: ExpandableConnectorNonDecl4.mo
// [flattening/modelica/scodeinst/ExpandableConnectorNonDecl4.mo:16:3-16:21:writable] Error: Variable EC.ri not found in scope ExpandableConnectorNonDecl4.
//
// # Error encountered! Exiting...
// # Please check the error message and the flags.
//
// Execution failed!
// endResult
1 change: 1 addition & 0 deletions testsuite/flattening/modelica/scodeinst/Makefile
Expand Up @@ -344,6 +344,7 @@ ExpandableConnectorFlow2.mo \
ExpandableConnectorNonDecl1.mo \
ExpandableConnectorNonDecl2.mo \
ExpandableConnectorNonDecl3.mo \
ExpandableConnectorNonDecl4.mo \
ExpandableConnectorPresent1.mo \
ExpandableConnectorPresent2.mo \
Extends1.mo \
Expand Down

0 comments on commit 2f4840a

Please sign in to comment.