xref: /freebsd/usr.bin/m4/tests/comments.m4 (revision a03411e84728e9b267056fd31c7d1d9d1dc1b01e)
1dnl $OpenBSD: src/regress/usr.bin/m4/comments.m4,v 1.1 2005/09/06 15:33:21 espie Exp $
2dnl checking the way changecom works.
31: normal
4define(`comment', `COMMENT')dnl
5define(`p', 'XXX')dnl
6# this is a comment
7>> this is a comment
8p this is a comment
9p this is a comment q comment too
10
112: `changecom(>>)dnl'
12changecom(>>)dnl
13# this is a comment
14>> this is a comment
15p this is a comment
16p this is a comment q comment too
17
183: `changecom dnl'
19changecom dnl
20# this is a comment
21>> this is a comment
22p this is a comment
23p this is a comment q comment too
24
254: `changecom()dnl'
26changecom()dnl
27# this is a comment
28>> this is a comment
29p this is a comment
30p this is a comment q comment too
31
325: `changecom(,)dnl'
33changecom(,)dnl
34# this is a comment
35>> this is a comment
36p this is a comment
37p this is a comment q comment too
38
396: `changecom(`p',q)dnl'
40changecom(`p',q)dnl
41# this is a comment
42>> this is a comment
43p this is a comment
44p this is a comment q comment too
45
467: `changecom(`p')dnl'
47changecom(`p')dnl
48# this is a comment
49>> this is a comment
50p this is a comment
51p this is a comment q comment too
52
538: `changecom(#)dnl'
54changecom(#)dnl
55# this is a comment
56>> this is a comment
57p this is a comment
58p this is a comment q comment too
59