quotes.m4 revision 234852
1234852Sbaptdnl $FreeBSD: head/tools/regression/usr.bin/m4/quotes.m4 234852 2012-04-30 22:00:34Z bapt $ 2234852Sbaptdnl $OpenBSD: src/regress/usr.bin/m4/quotes.m4,v 1.2 2005/09/06 15:33:21 espie Exp $ 3234852Sbaptdnl Checking the way changequote() is supposed to work 4234852Sbaptdefine(`string',`STRING')dnl 5234852Sbapt1: normal 6234852Sbapt`quoted string' 7234852Sbapt[quoted string] 8234852Sbaptnormal string 9234852Sbapt`half quoted string 10234852Sbaptgoing up to that string' 11234852Sbapt 12234852Sbapt2: kill quotes 13234852Sbaptchangequote()dnl 14234852Sbapt`quoted string' 15234852Sbapt[quoted string] 16234852Sbaptnormal string 17234852Sbapt`half quoted string 18234852Sbaptgoing up to that string' 19234852Sbapt 20234852Sbapt3: normal changed quote 21234852Sbaptchangequote([,])dnl 22234852Sbapt`quoted string' 23234852Sbapt[quoted string] 24234852Sbaptnormal string 25234852Sbapt`half quoted string 26234852Sbaptgoing up to that string' 27234852Sbapt 28234852Sbapt4: empty quotes, kill them too 29234852Sbaptchangequote(,)dnl 30234852Sbapt`quoted string' 31234852Sbapt[quoted string] 32234852Sbaptnormal string 33234852Sbapt`half quoted string 34234852Sbaptgoing up to that string' 35234852Sbapt 36234852Sbapt5: start quote only 37234852Sbaptchangequote(`)dnl 38234852Sbapt`quoted string' 39234852Sbapt[quoted string] 40234852Sbaptnormal string 41234852Sbapt`half quoted string 42234852Sbaptgoing up to that string' 43234852Sbapt 44234852Sbapt6: normal quotes are back 45234852Sbaptchangequote 46234852Sbapt`quoted string' 47234852Sbapt[quoted string] 48234852Sbaptnormal string 49234852Sbapt`half quoted string 50234852Sbaptgoing up to that string' 51234852Sbapt 52234852Sbapt7: start quote+empty end quote 53234852Sbaptchangequote([,)dnl 54234852Sbapt`quoted string' 55234852Sbapt[quoted string] 56234852Sbaptnormal string 57234852Sbapt`half quoted string 58234852Sbaptgoing up to that string' 59