Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Belonging to [master]: - #177 - OpenModelica/OMCompiler#3088
- Loading branch information
1 parent
3cd9411
commit 2f4840a
Showing
2 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
testsuite/flattening/modelica/scodeinst/ExpandableConnectorNonDecl4.mo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters