summaryrefslogtreecommitdiff
path: root/regress/usr.bin/m4/quotes.m4
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2001-09-29 15:49:19 +0000
committerMarc Espie <espie@cvs.openbsd.org>2001-09-29 15:49:19 +0000
commit8bc58c043141e169968250361a1da43296f9dec4 (patch)
treeab7100a35742e1af3fb10e701f5fe37e624a6f06 /regress/usr.bin/m4/quotes.m4
parent1216dfdc405b9cce8718176ff06e5124d152f3d3 (diff)
test funky quotes, in normal and gnu-m4 mode.
Diffstat (limited to 'regress/usr.bin/m4/quotes.m4')
-rw-r--r--regress/usr.bin/m4/quotes.m421
1 files changed, 21 insertions, 0 deletions
diff --git a/regress/usr.bin/m4/quotes.m4 b/regress/usr.bin/m4/quotes.m4
new file mode 100644
index 00000000000..08414663974
--- /dev/null
+++ b/regress/usr.bin/m4/quotes.m4
@@ -0,0 +1,21 @@
+dnl $OpenBSD: quotes.m4,v 1.1 2001/09/29 15:49:18 espie Exp $
+dnl Checking the way changequote() is supposed to work
+dnl in both normal and gnu emulation mode
+changequote()dnl
+`No quotes left'
+changequote([,])dnl
+[Quotes]changequote
+`No quotes left'
+changequote([,])dnl
+changequote(,)dnl
+`No quotes left'
+changequote([,])dnl
+dnl same thing with comments, so first:
+define([comment], [COMMENT])dnl
+# this is a comment
+changecom(>>)dnl
+# this is a comment
+changecom
+# this is a comment
+changecom(,)dnl
+# this is a comment