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