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

2: `changecom(>>)dnl'
changecom(>>)dnl
# this is a comment
>> this is a comment
p this is a comment
p this is a comment q comment too

3: `changecom dnl'
changecom dnl
# this is a comment
>> this is a comment
p this is a comment
p this is a comment q comment too

4: `changecom()dnl'
changecom()dnl
# this is a comment
>> this is a comment
p this is a comment
p this is a comment q comment too

5: `changecom(,)dnl'
changecom(,)dnl
# this is a comment
>> this is a comment
p this is a comment
p this is a comment q comment too

6: `changecom(`p',q)dnl'
changecom(`p',q)dnl
# this is a comment
>> this is a comment
p this is a comment
p this is a comment q comment too

7: `changecom(`p')dnl'
changecom(`p')dnl
# this is a comment
>> this is a comment
p this is a comment
p this is a comment q comment too

8: `changecom(#)dnl'
changecom(#)dnl
# this is a comment
>> this is a comment
p this is a comment
p this is a comment q comment too
OpenPOWER on IntegriCloud