diff options
author | Devang Patel <dpatel@apple.com> | 2005-02-19 11:48:02 -0800 |
---|---|---|
committer | Devang Patel <dpatel@gcc.gnu.org> | 2005-02-19 11:48:02 -0800 |
commit | 04c90eea0779dd173baa01b96aed683fec326207 (patch) | |
tree | 374c60752b401e773bee9a1c4325104556d62c52 /gcc | |
parent | 332e7efe7fa434a998aa5634dca6d4f93810f65f (diff) | |
download | gcc-04c90eea0779dd173baa01b96aed683fec326207.zip gcc-04c90eea0779dd173baa01b96aed683fec326207.tar.gz gcc-04c90eea0779dd173baa01b96aed683fec326207.tar.bz2 |
charset.c (_cpp_convert_input): Check '\r' before inserting '\n' at the end.
* charset.c (_cpp_convert_input): Check '\r' before inserting
'\n' at the end.
* gcc.dg/cpp/mac-eol-at-eof.c: New test.
From-SVN: r95289
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/cpp/mac-eol-at-eof.c | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 6d09ca0..8e083a9 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2005-02-19 Devang Patel <dpatel@apple.com> + + * gcc.dg/cpp/mac-eol-at-eof.c: New test. + 2005-02-19 Steven G. Kargl <kargls@comcast.net> * gfortran.dg/achar_1.f90: New test. diff --git a/gcc/testsuite/gcc.dg/cpp/mac-eol-at-eof.c b/gcc/testsuite/gcc.dg/cpp/mac-eol-at-eof.c new file mode 100644 index 0000000..6b0a279 --- /dev/null +++ b/gcc/testsuite/gcc.dg/cpp/mac-eol-at-eof.c @@ -0,0 +1 @@ +/* Test no newline at eof warning when Mac line ending is used*/
/* { dg-do compile } */
int main() { return 0; }
\ No newline at end of file |