Initial import of binutils 2.22 on the new vendor branch
[dragonfly.git] / usr.bin / make / tests / variables / t0 / test.sh
1 #!/bin/sh
2
3 # $DragonFly: src/usr.bin/make/tests/variables/t0/test.sh,v 1.6 2005/03/01 22:42:28 okumoto Exp $
4
5 . ../../common.sh
6
7 setup_test()
8 {
9         cat > $WORK_BASE/Makefile << "_EOF_"
10 A       = 0
11 AV      = 1
12 all:
13         echo $A
14         echo ${AV}
15         echo ${A}
16         # The following are soo broken why no syntax error?
17         echo $(
18         echo $)
19         echo ${
20         echo ${A
21         echo ${A)
22         echo ${A){
23         echo ${AV
24         echo ${AV)
25         echo ${AV){
26         echo ${AV{
27         echo ${A{
28         echo $}
29 _EOF_
30 }
31
32 desc_test()
33 {
34         echo "Variable expansion."
35 }
36
37 eval_cmd $1