Changeset 4d401cc in OpenModelica
- Timestamp:
- 2021-04-09T14:23:57+02:00 (3 years ago)
- Parents:
- 723951b
- git-author:
- Per Östlund <perost86@…> (04/09/21 14:22:32)
- git-committer:
- Per Östlund <perost86@…> (04/09/21 14:23:57)
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
OMCompiler/Compiler/NFFrontEnd/NFInst.mo
r0953e25 r4d401cc 2841 2841 algorithm 2842 2842 // Class with inherited external section that also contains other sections. 2843 Error.add SourceMessage(Error.MULTIPLE_SECTIONS_IN_FUNCTION,2844 {InstNode.name(scope)}, InstNode.info(scope));2843 Error.addMultiSourceMessage(Error.MULTIPLE_SECTIONS_IN_FUNCTION, 2844 {InstNode.name(scope)}, {sections.info, InstNode.info(scope)}); 2845 2845 then 2846 2846 fail(); … … 2899 2899 end if; 2900 2900 then 2901 Sections.EXTERNAL(name, args, ret_cref, lang, extDecl.annotation_, isSome(extDecl.funcName) );2901 Sections.EXTERNAL(name, args, ret_cref, lang, extDecl.annotation_, isSome(extDecl.funcName), info); 2902 2902 2903 2903 end match; -
OMCompiler/Compiler/NFFrontEnd/NFSections.mo
reba51605 r4d401cc 58 58 Option<Annotation> ann; 59 59 Boolean explicit; 60 SourceInfo info; 60 61 end EXTERNAL; 61 62 -
testsuite/flattening/modelica/scodeinst/ExtendInherited1.mo
r83ebb9b r4d401cc 1 // name: Extend sInherited11 // name: ExtendInherited1 2 2 // keywords: 3 3 // status: incorrect … … 13 13 end A; 14 14 15 model Extend sInherited115 model ExtendInherited1 16 16 extends A; 17 end Extend sInherited1;17 end ExtendInherited1; 18 18 19 19 // Result: -
testsuite/flattening/modelica/scodeinst/ExternalFunctionInvalidSection1.mo
r83ebb9b r4d401cc 26 26 // Result: 27 27 // Error processing file: ExternalFunctionInvalidSection1.mo 28 // [flattening/modelica/scodeinst/ExternalFunctionInvalidSection1.mo:15:3-15:12:writable] Notification: From here: 28 29 // [flattening/modelica/scodeinst/ExternalFunctionInvalidSection1.mo:14:1-18:7:writable] Error: Function f2 has more than one algorithm section or external declaration. 29 30 // -
testsuite/flattening/modelica/scodeinst/FunctionSections4.mo
r0953e25 r4d401cc 23 23 // Result: 24 24 // Error processing file: FunctionSections4.mo 25 // [flattening/modelica/scodeinst/FunctionSections4.mo:15:3-15:17:writable] Notification: From here: 25 26 // [flattening/modelica/scodeinst/FunctionSections4.mo:14:1-17:6:writable] Error: Function f has more than one algorithm section or external declaration. 26 27 //
Note: See TracChangeset
for help on using the changeset viewer.