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#2401 - OpenModelica/OpenModelica-testsuite#935
- Loading branch information
1 parent
bdad486
commit a523321
Showing
2 changed files
with
22 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// name: CevalIntegerEnum1 | ||
// keywords: | ||
// status: correct | ||
// cflags: -d=newInst | ||
// | ||
// | ||
|
||
model CevalIntegerEnum1 | ||
type E = enumeration(one, two, three); | ||
constant Integer i1 = Integer(E.one); | ||
constant Integer i2 = Integer(E.two); | ||
constant Integer i3 = Integer(E.three); | ||
end CevalIntegerEnum1; | ||
|
||
// Result: | ||
// class CevalIntegerEnum1 | ||
// constant Integer i1 = 1; | ||
// constant Integer i2 = 2; | ||
// constant Integer i3 = 3; | ||
// end CevalIntegerEnum1; | ||
// 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