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]: - OpenModelica/OMCompiler#2781 - OpenModelica/OpenModelica-testsuite#1074
- Loading branch information
1 parent
87201bf
commit aa7e9c1
Showing
2 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
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
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,22 @@ | ||
// name: WhenVariablity2 | ||
// keywords: | ||
// status: incorrect | ||
// cflags: -d=newInst | ||
// | ||
|
||
model WhenVariability2 | ||
Real x; | ||
algorithm | ||
when pre(x) > 1 then | ||
end when; | ||
end WhenVariability2; | ||
|
||
// Result: | ||
// Error processing file: WhenVariability2.mo | ||
// [flattening/modelica/scodeinst/WhenVariability2.mo:10:3-11:11:writable] Error: Argument 1 of pre must be a discrete expression, but x is continuous. | ||
// | ||
// # Error encountered! Exiting... | ||
// # Please check the error message and the flags. | ||
// | ||
// Execution failed! | ||
// endResult |