summaryrefslogtreecommitdiff
path: root/tests/indir.1.test
blob: 3cbc0511cb177b7743b830d8d39a59e3af46da20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh

# indir.1.test is part of the GNU m4 testsuite
# generated from example in ../doc/m4.texinfo line 1370

. ${srcdir}/defs

cat <<\EOF >in
define(`$$internal$macro', `Internal macro (name `$0')')
$$internal$macro
indir(`$$internal$macro')
EOF

cat <<\EOF >ok

$$internal$macro
Internal macro (name $$internal$macro)
EOF

$M4 -d in >out

$CMP -s out ok