-# Copyright © 2012, 2020-2021, 2023 Nick Bowler
+# Copyright © 2012, 2020-2021, 2023-2024 Nick Bowler
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
AT_SETUP([cdecl99 invalid character error messages])
-$AWK -f - >test.dat <<'EOF'
-BEGIN {
+$AWK 'BEGIN {
print "explain \1";
print "explain \377";
print "explain \a";
print "explain \b";
print "explain ?";
-}
-EOF
+}' >test.dat </dev/null
AT_CHECK([LC_ALL=C cdecl99 -f test.dat || exit 42], [42], [], [stderr])
AT_CHECK([$AWK '{ print $NF; }' stderr], [0],