gcc/libiberty/testsuite
Daniel Gutson 70277b3073 argv.c (consume_whitespace): New function.
2009-10-08  Daniel Gutson  <dgutson@codesourcery.com>
        Daniel Jacobowitz  <dan@codesourcery.com>
        Pedro Alves  <pedro@codesourcery.com>

        libiberty/
        * argv.c (consume_whitespace): New function.
        (only_whitespace): New function.
        (buildargv): Always use ISSPACE by calling consume_whitespace.
        (expandargv): Skip empty files.  Do not stop at the first empty
        argument (calling only_whitespace)..
        * testsuite/test-expandargv.c: (test_data): Test empty lines
        and empty arguments.
        (run_tests): Fix false positives due to shorter arguments.


Co-Authored-By: Daniel Jacobowitz <dan@codesourcery.com>
Co-Authored-By: Pedro Alves <pedro@codesourcery.com>

From-SVN: r152560
2009-10-08 15:14:41 +00:00
..
demangle-expected merge in cxx0x-lambdas-branch@152308 2009-09-29 23:01:30 -04:00
Makefile.in re PR other/12618 (core not cleaned up by 'make distclean') 2008-02-19 14:23:15 +11:00
test-demangle.c re PR fortran/10197 (direct acces files not unformatted by default) 2009-06-16 12:43:58 +00:00
test-expandargv.c argv.c (consume_whitespace): New function. 2009-10-08 15:14:41 +00:00
test-pexecute.c