xref: /aosp_15_r20/external/one-true-awk/testdir/T.csconcat (revision 9a7741de182b2776d7b30d6355f2585c0780a51b)
1*9a7741deSElliott Hughesecho T.csconcat: test constant string concatenation
2*9a7741deSElliott Hughes
3*9a7741deSElliott Hughesawk=${awk-../a.out}
4*9a7741deSElliott Hughes
5*9a7741deSElliott Hughes$awk '
6*9a7741deSElliott HughesBEGIN {
7*9a7741deSElliott Hughes	$0 = "aaa"
8*9a7741deSElliott Hughes	print "abcdef" " " $0
9*9a7741deSElliott Hughes}
10*9a7741deSElliott HughesBEGIN { print "hello" "world"; print helloworld }
11*9a7741deSElliott HughesBEGIN {
12*9a7741deSElliott Hughes 	print " " "hello"
13*9a7741deSElliott Hughes 	print "hello" " "
14*9a7741deSElliott Hughes 	print "hello" " " "world"
15*9a7741deSElliott Hughes 	print "hello" (" " "world")
16*9a7741deSElliott Hughes}
17*9a7741deSElliott Hughes' > foo1
18*9a7741deSElliott Hughes
19*9a7741deSElliott Hughescat << \EOF > foo2
20*9a7741deSElliott Hughesabcdef aaa
21*9a7741deSElliott Hugheshelloworld
22*9a7741deSElliott Hughes
23*9a7741deSElliott Hughes hello
24*9a7741deSElliott Hugheshello
25*9a7741deSElliott Hugheshello world
26*9a7741deSElliott Hugheshello world
27*9a7741deSElliott HughesEOF
28*9a7741deSElliott Hughes
29*9a7741deSElliott Hughesdiff foo1 foo2 || echo 'BAD: T.csconcat (1)'
30