]> CyberLeo.Net >> Repos - FreeBSD/releng/10.2.git/blob - usr.bin/bmake/tests/syntax/enl/Makefile.test
- Copy stable/10@285827 to releng/10.2 in preparation for 10.2-RC1
[FreeBSD/releng/10.2.git] / usr.bin / bmake / tests / syntax / enl / Makefile.test
1 # $FreeBSD$
2 #
3 # Test handling of escaped newlines.
4 #
5
6 .ifmake test1
7
8 # This should succeed
9 \
10 \
11 \
12 test1:
13         @echo ok
14
15 .elifmake test2
16
17 # This should print ok because the second assignment to foo is actually
18 # a continued comment.
19 FOO=ok
20 #\
21 \
22 FOO=not ok
23 test2:
24         @echo "${FOO}"
25
26 .elifmake test3
27
28 # Make sure an escaped newline inserts a space
29 test3: a\
30 b
31
32 a:
33         @echo a
34
35 b:
36         @echo b
37
38 .elifmake test4
39
40 # Make sure an escaped newline inserts exactly one space
41 FOO=a\
42                               b
43
44 test4:
45         @echo "${FOO}"
46
47 .elifmake test5
48
49 # Make sure each escaped newline inserts exactly one space
50 FOO=a\
51 \
52 \
53 \
54 b
55
56 test5:
57         @echo "${FOO}"
58     
59 .endif