Skip to content

Commit

Permalink
- Fixed code generation of _ := exp (was limited to valueblocks, but …
Browse files Browse the repository at this point in the history
…MetaModelica allows any expression there).

- Added 08_pam to the testsuite


git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@4604 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Nov 30, 2009
1 parent 2b925f8 commit ccc48e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Compiler/Codegen.mo
Expand Up @@ -3164,8 +3164,8 @@ algorithm
ExpContext expContext;
LoopContext loopContext;

// Part of ValueBlock implementation, special treatment of _ := VB case
case (DAE.STMT_ASSIGN(_,DAE.CREF(DAE.WILD(),_),exp as DAE.VALUEBLOCK(_,_,_,_)),tnr,context)
// Part of ValueBlock and MetaModelica implementation, special treatment of _ := VB case
case (DAE.STMT_ASSIGN(_,DAE.CREF(DAE.WILD(),_),exp),tnr,context)
equation
(cfn,_,tnr1) = generateExpression(exp, tnr, context);
then (cfn,tnr1);
Expand Down

0 comments on commit ccc48e3

Please sign in to comment.