]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - tools/regression/usr.bin/m4/comments.m4
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / tools / regression / usr.bin / m4 / comments.m4
1 dnl $FreeBSD$
2 dnl $OpenBSD: src/regress/usr.bin/m4/comments.m4,v 1.1 2005/09/06 15:33:21 espie Exp $
3 dnl checking the way changecom works.
4 1: normal
5 define(`comment', `COMMENT')dnl
6 define(`p', 'XXX')dnl
7 # this is a comment
8 >> this is a comment
9 p this is a comment
10 p this is a comment q comment too
11
12 2: `changecom(>>)dnl'
13 changecom(>>)dnl
14 # this is a comment
15 >> this is a comment
16 p this is a comment
17 p this is a comment q comment too
18
19 3: `changecom dnl'
20 changecom dnl
21 # this is a comment
22 >> this is a comment
23 p this is a comment
24 p this is a comment q comment too
25
26 4: `changecom()dnl'
27 changecom()dnl
28 # this is a comment
29 >> this is a comment
30 p this is a comment
31 p this is a comment q comment too
32
33 5: `changecom(,)dnl'
34 changecom(,)dnl
35 # this is a comment
36 >> this is a comment
37 p this is a comment
38 p this is a comment q comment too
39
40 6: `changecom(`p',q)dnl'
41 changecom(`p',q)dnl
42 # this is a comment
43 >> this is a comment
44 p this is a comment
45 p this is a comment q comment too
46
47 7: `changecom(`p')dnl'
48 changecom(`p')dnl
49 # this is a comment
50 >> this is a comment
51 p this is a comment
52 p this is a comment q comment too
53
54 8: `changecom(#)dnl'
55 changecom(#)dnl
56 # this is a comment
57 >> this is a comment
58 p this is a comment
59 p this is a comment q comment too