xref: /freebsd/usr.bin/m4/tests/comments.m4 (revision 7ef62cebc2f965b0f640263e179276928885e33d)
1dnl $FreeBSD$
2dnl $OpenBSD: src/regress/usr.bin/m4/comments.m4,v 1.1 2005/09/06 15:33:21 espie Exp $
3dnl checking the way changecom works.
41: normal
5define(`comment', `COMMENT')dnl
6define(`p', 'XXX')dnl
7# this is a comment
8>> this is a comment
9p this is a comment
10p this is a comment q comment too
11
122: `changecom(>>)dnl'
13changecom(>>)dnl
14# this is a comment
15>> this is a comment
16p this is a comment
17p this is a comment q comment too
18
193: `changecom dnl'
20changecom dnl
21# this is a comment
22>> this is a comment
23p this is a comment
24p this is a comment q comment too
25
264: `changecom()dnl'
27changecom()dnl
28# this is a comment
29>> this is a comment
30p this is a comment
31p this is a comment q comment too
32
335: `changecom(,)dnl'
34changecom(,)dnl
35# this is a comment
36>> this is a comment
37p this is a comment
38p this is a comment q comment too
39
406: `changecom(`p',q)dnl'
41changecom(`p',q)dnl
42# this is a comment
43>> this is a comment
44p this is a comment
45p this is a comment q comment too
46
477: `changecom(`p')dnl'
48changecom(`p')dnl
49# this is a comment
50>> this is a comment
51p this is a comment
52p this is a comment q comment too
53
548: `changecom(#)dnl'
55changecom(#)dnl
56# this is a comment
57>> this is a comment
58p this is a comment
59p this is a comment q comment too
60