[BACK]Return to var-op-expand.mk CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / usr.bin / make / unit-tests

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/usr.bin/make/unit-tests/var-op-expand.mk between version 1.5 and 1.6

version 1.5, 2020/12/27 20:45:52 version 1.6, 2020/12/27 21:19:13
Line 86  UNDEF=  Uwas undefined
Line 86  UNDEF=  Uwas undefined
 .endif  .endif
   
   
   # In variable assignments using the ':=' operator, undefined variables are
   # preserved, no matter how indirectly they are referenced.
   .undef REF3
   REF2=           <${REF3}>
   REF=            ${REF2}
   VAR:=           ${REF}
   REF3=           too late
   .if ${VAR} != "<too late>"
   .  error
   .endif
   
   
   # In variable assignments using the ':=' operator, '$$' are preserved, no
   # matter how indirectly they are referenced.
   REF2=           REF2:$$ $$$$
   REF=            REF:$$ $$$$ ${REF2}
   VAR:=           VAR:$$ $$$$ ${REF}
   .if ${VAR} != "VAR:\$ \$\$ REF:\$ \$\$ REF2:\$ \$\$"
   .  error
   .endif
   
   
   # In variable assignments using the ':=' operator, '$$' are preserved in the
   # expressions of the top level, but not in expressions that are nested.
   VAR:=           top:$$ ${:Unest1\:\$\$} ${:Unest2${:U\:\$\$}}
   .if ${VAR} != "top:\$ nest1:\$ nest2:\$"
   .  error
   .endif
   
   
 # XXX: edge case: When a variable name refers to an undefined variable, the  # XXX: edge case: When a variable name refers to an undefined variable, the
 # behavior differs between the '=' and the ':=' assignment operators.  # behavior differs between the '=' and the ':=' assignment operators.
 # This bug exists since var.c 1.42 from 2000-05-11.  # This bug exists since var.c 1.42 from 2000-05-11.

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

CVSweb <webmaster@jp.NetBSD.org>