1; Check that --pic isn't recognized for a.out files, with a.out the default.
2
3; { dg-do assemble { target cris-*-*aout* } }
4; { dg-options "--pic" }
5; { dg-error ".* --pic is invalid" "" { target cris-*-* } 0 }
6 nop
7