This repository has been archived by the owner on Apr 3, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 41
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#2107 - #821
- Loading branch information
1 parent
eb0d38c
commit 6d6e41b
Showing
3 changed files
with
35 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,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 |
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,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 |
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