gcc/
[official-gcc.git] / gcc / testsuite / gcc.dg / spec-options.c
blob1f9d8c1fd84afe2d7e45ad778449234eb4281151
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" } */
8 extern void abort(void);
10 int main(void)
12 #ifdef FOO
13 return 0;
14 #else
15 abort();
16 #endif