1234567891011121314151617181920212223242526272829303132333435 |
- #! /bin/sh
- required=gcc
- am_create_testdir=empty
- . test-init.sh
- CC=$am_testaux_builddir/cc-no-c-o; export CC
- echo 'int main (void) { return 0; }' > foo.c
- $CC -c foo.c
- test -f foo.o || test -f foo.obj
- $CC -c -o bar.o foo.c 2>stderr && { cat stderr >&2; exit 1; }
- cat stderr >&2
- grep "both '-o' and '-c' seen on the command line" stderr
- test ! -e bar.o && test ! -e bar.obj
- :
|