xref: /freebsd/contrib/one-true-awk/testdir/T.csconcat (revision d5b0e70f7e04d971691517ce1304d86a1e367e2e)
1echo T.csconcat: test constant string concatentation
2
3awk=${awk-../a.out}
4
5$awk '
6BEGIN {
7	$0 = "aaa"
8	print "abcdef" " " $0
9}
10BEGIN { print "hello" "world"; print helloworld }
11BEGIN {
12 	print " " "hello"
13 	print "hello" " "
14 	print "hello" " " "world"
15 	print "hello" (" " "world")
16}
17' > foo1
18
19cat << \EOF > foo2
20abcdef aaa
21helloworld
22
23 hello
24hello
25hello world
26hello world
27EOF
28
29diff foo1 foo2 || echo 'BAD: T.csconcat (1)'
30