https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92720

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #1)
> GCC does not check the files.  
> 
> >echo '\042hello botfelk\\n\042'
> This one fails for me too:
> In file included from t8.c:5:0:
> /dev/stdin: In function ‘main’:
> /dev/stdin:1:1: error: stray ‘\’ in program
> /dev/stdin:1:2: error: invalid suffix "hello" on integer constant
> /dev/stdin:1:11: error: expected ‘)’ before ‘botfelk’
> /dev/stdin:1:18: error: stray ‘\’ in program
> /dev/stdin:1:19: error: stray ‘\’ in program
> /dev/stdin:1:21: error: stray ‘\’ in program

You need to use -e for GNU echo to interpret the \042 characters.

Reply via email to