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 } */
5 /* { dg-options "-B${srcdir}/gcc.dg --specs=foo.specs -tfoo" } */
6
7 extern void abort(void);
8
9 int main(void)
10 {
11 #ifdef FOO
12 return 0;
13 #else
14 abort();
15 #endif
16 }