Sync with manuals from netbsd-8 branch.
[minix3.git] / usr.bin / make / unit-tests / modword.exp
blob258d7eadd6ce539b33f2121a192db2318c50bd24
1 make: Bad modifier `:[]' for LIST
2 LIST:[]="" is an error
3 LIST:[0]="one two three four five six"
4 LIST:[0x0]="one two three four five six"
5 LIST:[000]="one two three four five six"
6 LIST:[*]="one two three four five six"
7 LIST:[@]="one two three four five six"
8 LIST:[0]:C/ /,/="one,two three four five six"
9 LIST:[0]:C/ /,/g="one,two,three,four,five,six"
10 LIST:[0]:C/ /,/1g="one,two,three,four,five,six"
11 LIST:[*]:C/ /,/="one,two three four five six"
12 LIST:[*]:C/ /,/g="one,two,three,four,five,six"
13 LIST:[*]:C/ /,/1g="one,two,three,four,five,six"
14 LIST:[@]:C/ /,/="one two three four five six"
15 LIST:[@]:C/ /,/g="one two three four five six"
16 LIST:[@]:C/ /,/1g="one two three four five six"
17 LIST:[@]:[0]:C/ /,/="one,two three four five six"
18 LIST:[0]:[@]:C/ /,/="one two three four five six"
19 LIST:[@]:[*]:C/ /,/="one,two three four five six"
20 LIST:[*]:[@]:C/ /,/="one two three four five six"
21 EMPTY=""
22 EMPTY:[#]="1" == 1 ?
23 ESCAPEDSPACE="\ "
24 ESCAPEDSPACE:[#]="1" == 1 ?
25 REALLYSPACE=" "
26 REALLYSPACE:[#]="1" == 1 ?
27 LIST:[#]="6"
28 LIST:[0]:[#]="1" == 1 ?
29 LIST:[*]:[#]="1" == 1 ?
30 LIST:[@]:[#]="6"
31 LIST:[1]:[#]="1"
32 LIST:[1..3]:[#]="3"
33 EMPTY:[1]=""
34 ESCAPEDSPACE="\ "
35 ESCAPEDSPACE:[1]="\ "
36 REALLYSPACE=" "
37 REALLYSPACE:[1]="" == "" ?
38 REALLYSPACE:[*]:[1]=" " == " " ?
39 LIST:[1]="one"
40 make: Bad modifier `:[1.]' for LIST
41 LIST:[1.]="" is an error
42 make: Bad modifier `:[1].' for LIST
43 LIST:[1].="}" is an error
44 LIST:[2]="two"
45 LIST:[6]="six"
46 LIST:[7]=""
47 LIST:[999]=""
48 make: Bad modifier `:[-]' for LIST
49 LIST:[-]="" is an error
50 make: Bad modifier `:[--]' for LIST
51 LIST:[--]="" is an error
52 LIST:[-1]="six"
53 LIST:[-2]="five"
54 LIST:[-6]="one"
55 LIST:[-7]=""
56 LIST:[-999]=""
57 LONGLIST:[17]="17"
58 LONGLIST:[0x11]="17"
59 LONGLIST:[021]="17"
60 LIST:[0]:[1]="one two three four five six"
61 LIST:[*]:[1]="one two three four five six"
62 LIST:[@]:[1]="one"
63 LIST:[0]:[2]=""
64 LIST:[*]:[2]=""
65 LIST:[@]:[2]="two"
66 LIST:[*]:C/ /,/:[2]=""
67 LIST:[*]:C/ /,/:[*]:[2]=""
68 LIST:[*]:C/ /,/:[@]:[2]="three"
69 make: Bad modifier `:[1.]' for LIST
70 LIST:[1.]="" is an error
71 make: Bad modifier `:[1..]' for LIST
72 LIST:[1..]="" is an error
73 LIST:[1..1]="one"
74 make: Bad modifier `:[1..1.]' for LIST
75 LIST:[1..1.]="" is an error
76 LIST:[1..2]="one two"
77 LIST:[2..1]="two one"
78 LIST:[3..-2]="three four five"
79 LIST:[-4..4]="three four"
80 make: Bad modifier `:[0..1]' for LIST
81 LIST:[0..1]="" is an error
82 make: Bad modifier `:[-1..0]' for LIST
83 LIST:[-1..0]="" is an error
84 LIST:[-1..1]="six five four three two one"
85 LIST:[0..0]="one two three four five six"
86 LIST:[3..99]="three four five six"
87 LIST:[-3..-99]="four three two one"
88 LIST:[-99..-3]="one two three four"
89 HASH="#" == "#" ?
90 LIST:[${HASH}]="6"
91 LIST:[${ZERO}]="one two three four five six"
92 LIST:[${ZERO}x${ONE}]="one"
93 LIST:[${ONE}]="one"
94 LIST:[${MINUSONE}]="six"
95 LIST:[${STAR}]="one two three four five six"
96 LIST:[${AT}]="one two three four five six"
97 make: Bad modifier `:[${EMPTY' for LIST
98 LIST:[${EMPTY}]="" is an error
99 LIST:[${LONGLIST:[21]:S/2//}]="one"
100 LIST:[${LIST:[#]}]="six"
101 LIST:[${LIST:[${HASH}]}]="six"
102 LIST:S/ /,/="one two three four five six"
103 LIST:S/ /,/W="one,two three four five six"
104 LIST:S/ /,/gW="one,two,three,four,five,six"
105 EMPTY:S/^/,/=","
106 EMPTY:S/^/,/W=","
107 LIST:C/ /,/="one two three four five six"
108 LIST:C/ /,/W="one,two three four five six"
109 LIST:C/ /,/gW="one,two,three,four,five,six"
110 EMPTY:C/^/,/=","
111 EMPTY:C/^/,/W=","
112 LIST:tW="one two three four five six"
113 LIST:tw="one two three four five six"
114 LIST:tW:C/ /,/="one,two three four five six"
115 LIST:tW:C/ /,/g="one,two,three,four,five,six"
116 LIST:tW:C/ /,/1g="one,two,three,four,five,six"
117 LIST:tw:C/ /,/="one two three four five six"
118 LIST:tw:C/ /,/g="one two three four five six"
119 LIST:tw:C/ /,/1g="one two three four five six"
120 LIST:tw:tW:C/ /,/="one,two three four five six"
121 LIST:tW:tw:C/ /,/="one two three four five six"
122 exit status 0