xref: /dflybsd-src/tools/regression/usr.bin/m4/comments.m4 (revision 4da66bbfa353d0fb44e7a3c17f7268748edba48b)
1*9b9cf381SPeter Avalosdnl $FreeBSD: src/tools/regression/usr.bin/m4/comments.m4,v 1.2 2012/11/17 01:53:58 svnexp Exp $
2*9b9cf381SPeter Avalosdnl $OpenBSD: src/regress/usr.bin/m4/comments.m4,v 1.1 2005/09/06 15:33:21 espie Exp $
3*9b9cf381SPeter Avalosdnl checking the way changecom works.
4*9b9cf381SPeter Avalos1: normal
5*9b9cf381SPeter Avalosdefine(`comment', `COMMENT')dnl
6*9b9cf381SPeter Avalosdefine(`p', 'XXX')dnl
7*9b9cf381SPeter Avalos# this is a comment
8*9b9cf381SPeter Avalos>> this is a comment
9*9b9cf381SPeter Avalosp this is a comment
10*9b9cf381SPeter Avalosp this is a comment q comment too
11*9b9cf381SPeter Avalos
12*9b9cf381SPeter Avalos2: `changecom(>>)dnl'
13*9b9cf381SPeter Avaloschangecom(>>)dnl
14*9b9cf381SPeter Avalos# this is a comment
15*9b9cf381SPeter Avalos>> this is a comment
16*9b9cf381SPeter Avalosp this is a comment
17*9b9cf381SPeter Avalosp this is a comment q comment too
18*9b9cf381SPeter Avalos
19*9b9cf381SPeter Avalos3: `changecom dnl'
20*9b9cf381SPeter Avaloschangecom dnl
21*9b9cf381SPeter Avalos# this is a comment
22*9b9cf381SPeter Avalos>> this is a comment
23*9b9cf381SPeter Avalosp this is a comment
24*9b9cf381SPeter Avalosp this is a comment q comment too
25*9b9cf381SPeter Avalos
26*9b9cf381SPeter Avalos4: `changecom()dnl'
27*9b9cf381SPeter Avaloschangecom()dnl
28*9b9cf381SPeter Avalos# this is a comment
29*9b9cf381SPeter Avalos>> this is a comment
30*9b9cf381SPeter Avalosp this is a comment
31*9b9cf381SPeter Avalosp this is a comment q comment too
32*9b9cf381SPeter Avalos
33*9b9cf381SPeter Avalos5: `changecom(,)dnl'
34*9b9cf381SPeter Avaloschangecom(,)dnl
35*9b9cf381SPeter Avalos# this is a comment
36*9b9cf381SPeter Avalos>> this is a comment
37*9b9cf381SPeter Avalosp this is a comment
38*9b9cf381SPeter Avalosp this is a comment q comment too
39*9b9cf381SPeter Avalos
40*9b9cf381SPeter Avalos6: `changecom(`p',q)dnl'
41*9b9cf381SPeter Avaloschangecom(`p',q)dnl
42*9b9cf381SPeter Avalos# this is a comment
43*9b9cf381SPeter Avalos>> this is a comment
44*9b9cf381SPeter Avalosp this is a comment
45*9b9cf381SPeter Avalosp this is a comment q comment too
46*9b9cf381SPeter Avalos
47*9b9cf381SPeter Avalos7: `changecom(`p')dnl'
48*9b9cf381SPeter Avaloschangecom(`p')dnl
49*9b9cf381SPeter Avalos# this is a comment
50*9b9cf381SPeter Avalos>> this is a comment
51*9b9cf381SPeter Avalosp this is a comment
52*9b9cf381SPeter Avalosp this is a comment q comment too
53*9b9cf381SPeter Avalos
54*9b9cf381SPeter Avalos8: `changecom(#)dnl'
55*9b9cf381SPeter Avaloschangecom(#)dnl
56*9b9cf381SPeter Avalos# this is a comment
57*9b9cf381SPeter Avalos>> this is a comment
58*9b9cf381SPeter Avalosp this is a comment
59*9b9cf381SPeter Avalosp this is a comment q comment too
60