]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/bmake/unit-tests/counter.exp
Update to bmake-20200902
[FreeBSD/FreeBSD.git] / contrib / bmake / unit-tests / counter.exp
1 Global:RELEVANT = yes (load-time part)
2 Global:COUNTER = 
3 Global:NEXT = ${COUNTER::=${COUNTER} a}${COUNTER:[#]}
4 Global:A = 
5 Var_Parse: ${NEXT} with VARE_WANTRES|VARE_ASSIGN
6 Var_Parse: ${COUNTER::=${COUNTER} a}${COUNTER:[#]} with VARE_WANTRES|VARE_ASSIGN
7 Applying ${COUNTER::...} to "" (eflags = VARE_WANTRES|VARE_ASSIGN, vflags = none)
8 Var_Parse: ${COUNTER} a}${COUNTER:[#]} with VARE_WANTRES
9 Modifier part: " a"
10 Global:COUNTER =  a
11 Result of ${COUNTER::=${COUNTER} a} is "" (eflags = VARE_WANTRES|VARE_ASSIGN, vflags = none)
12 Var_Parse: ${COUNTER} a}${COUNTER:[#]} with VARE_WANTRES|VARE_ASSIGN
13 Var_Parse: ${COUNTER:[#]} with VARE_WANTRES|VARE_ASSIGN
14 Applying ${COUNTER:[...} to " a" (eflags = VARE_WANTRES|VARE_ASSIGN, vflags = none)
15 Modifier part: "#"
16 Result of ${COUNTER:[#]} is "1" (eflags = VARE_WANTRES|VARE_ASSIGN, vflags = none)
17 Global:A = ${COUNTER::= a a}1
18 Global:B = 
19 Var_Parse: ${NEXT} with VARE_WANTRES|VARE_ASSIGN
20 Var_Parse: ${COUNTER::=${COUNTER} a}${COUNTER:[#]} with VARE_WANTRES|VARE_ASSIGN
21 Applying ${COUNTER::...} to " a" (eflags = VARE_WANTRES|VARE_ASSIGN, vflags = none)
22 Var_Parse: ${COUNTER} a}${COUNTER:[#]} with VARE_WANTRES
23 Modifier part: " a a"
24 Global:COUNTER =  a a
25 Result of ${COUNTER::=${COUNTER} a} is "" (eflags = VARE_WANTRES|VARE_ASSIGN, vflags = none)
26 Var_Parse: ${COUNTER} a}${COUNTER:[#]} with VARE_WANTRES|VARE_ASSIGN
27 Var_Parse: ${COUNTER:[#]} with VARE_WANTRES|VARE_ASSIGN
28 Applying ${COUNTER:[...} to " a a" (eflags = VARE_WANTRES|VARE_ASSIGN, vflags = none)
29 Modifier part: "#"
30 Result of ${COUNTER:[#]} is "2" (eflags = VARE_WANTRES|VARE_ASSIGN, vflags = none)
31 Global:B = ${COUNTER::= a a a}2
32 Global:C = 
33 Var_Parse: ${NEXT} with VARE_WANTRES|VARE_ASSIGN
34 Var_Parse: ${COUNTER::=${COUNTER} a}${COUNTER:[#]} with VARE_WANTRES|VARE_ASSIGN
35 Applying ${COUNTER::...} to " a a" (eflags = VARE_WANTRES|VARE_ASSIGN, vflags = none)
36 Var_Parse: ${COUNTER} a}${COUNTER:[#]} with VARE_WANTRES
37 Modifier part: " a a a"
38 Global:COUNTER =  a a a
39 Result of ${COUNTER::=${COUNTER} a} is "" (eflags = VARE_WANTRES|VARE_ASSIGN, vflags = none)
40 Var_Parse: ${COUNTER} a}${COUNTER:[#]} with VARE_WANTRES|VARE_ASSIGN
41 Var_Parse: ${COUNTER:[#]} with VARE_WANTRES|VARE_ASSIGN
42 Applying ${COUNTER:[...} to " a a a" (eflags = VARE_WANTRES|VARE_ASSIGN, vflags = none)
43 Modifier part: "#"
44 Result of ${COUNTER:[#]} is "3" (eflags = VARE_WANTRES|VARE_ASSIGN, vflags = none)
45 Global:C = ${COUNTER::= a a a a}3
46 Global:RELEVANT = no
47 Global:RELEVANT = yes (run-time part)
48 Result of ${RELEVANT::=yes (run-time part)} is "" (eflags = VARE_WANTRES, vflags = none)
49 Var_Parse: ${A:Q} B=${B:Q} C=${C:Q} COUNTER=${COUNTER:[#]:Q} with VARE_WANTRES
50 Var_Parse: ${COUNTER::= a a}1 with VARE_WANTRES
51 Applying ${COUNTER::...} to " a a a" (eflags = VARE_WANTRES, vflags = none)
52 Modifier part: " a a"
53 Global:COUNTER =  a a
54 Result of ${COUNTER::= a a} is "" (eflags = VARE_WANTRES, vflags = none)
55 Applying ${A:Q} to "1" (eflags = VARE_WANTRES, vflags = none)
56 QuoteMeta: [1]
57 Result of ${A:Q} is "1" (eflags = VARE_WANTRES, vflags = none)
58 Var_Parse: ${B:Q} C=${C:Q} COUNTER=${COUNTER:[#]:Q} with VARE_WANTRES
59 Var_Parse: ${COUNTER::= a a a}2 with VARE_WANTRES
60 Applying ${COUNTER::...} to " a a" (eflags = VARE_WANTRES, vflags = none)
61 Modifier part: " a a a"
62 Global:COUNTER =  a a a
63 Result of ${COUNTER::= a a a} is "" (eflags = VARE_WANTRES, vflags = none)
64 Applying ${B:Q} to "2" (eflags = VARE_WANTRES, vflags = none)
65 QuoteMeta: [2]
66 Result of ${B:Q} is "2" (eflags = VARE_WANTRES, vflags = none)
67 Var_Parse: ${C:Q} COUNTER=${COUNTER:[#]:Q} with VARE_WANTRES
68 Var_Parse: ${COUNTER::= a a a a}3 with VARE_WANTRES
69 Applying ${COUNTER::...} to " a a a" (eflags = VARE_WANTRES, vflags = none)
70 Modifier part: " a a a a"
71 Global:COUNTER =  a a a a
72 Result of ${COUNTER::= a a a a} is "" (eflags = VARE_WANTRES, vflags = none)
73 Applying ${C:Q} to "3" (eflags = VARE_WANTRES, vflags = none)
74 QuoteMeta: [3]
75 Result of ${C:Q} is "3" (eflags = VARE_WANTRES, vflags = none)
76 Var_Parse: ${COUNTER:[#]:Q} with VARE_WANTRES
77 Applying ${COUNTER:[...} to " a a a a" (eflags = VARE_WANTRES, vflags = none)
78 Modifier part: "#"
79 Result of ${COUNTER:[#]} is "4" (eflags = VARE_WANTRES, vflags = none)
80 Applying ${COUNTER:Q} to "4" (eflags = VARE_WANTRES, vflags = none)
81 QuoteMeta: [4]
82 Result of ${COUNTER:Q} is "4" (eflags = VARE_WANTRES, vflags = none)
83 A=1 B=2 C=3 COUNTER=4
84 Var_Parse: ${RELEVANT::=no} with VARE_WANTRES
85 Applying ${RELEVANT::...} to "yes (run-time part)" (eflags = VARE_WANTRES, vflags = none)
86 Modifier part: "no"
87 Global:RELEVANT = no
88 exit status 0