diff options
Diffstat (limited to 'testdir/T.csconcat')
-rwxr-xr-x | testdir/T.csconcat | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/testdir/T.csconcat b/testdir/T.csconcat new file mode 100755 index 0000000..5199600 --- /dev/null +++ b/testdir/T.csconcat @@ -0,0 +1,29 @@ +echo T.csconcat: test constant string concatentation + +awk=${awk-../a.out} + +$awk ' +BEGIN { + $0 = "aaa" + print "abcdef" " " $0 +} +BEGIN { print "hello" "world"; print helloworld } +BEGIN { + print " " "hello" + print "hello" " " + print "hello" " " "world" + print "hello" (" " "world") +} +' > foo1 + +cat << \EOF > foo2 +abcdef aaa +helloworld + + hello +hello +hello world +hello world +EOF + +diff foo1 foo2 || echo 'BAD: T.csconcat (1)' |