1 /* Check that -mfoo is accepted if defined in a user spec 2 and that it is not passed on the command line. */ 3 /* Must be processed in EXTRA_SPECS to run. */ 4 /* { dg-do run { target sh*-*-* } } */ 5 /* { dg-do compile } */ 6 /* { dg-options "-B${srcdir}/gcc.dg --specs=foo.specs -tfoo" } */ 7 8 extern void abort(void); 9 main(void)10int main(void) 11 { 12 #ifdef FOO 13 return 0; 14 #else 15 abort(); 16 #endif 17 } 18