aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/spec-options.c
blob: 1f9d8c1fd84afe2d7e45ad778449234eb4281151 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* Check that -mfoo is accepted if defined in a user spec
   and that it is not passed on the command line.  */
/* Must be processed in EXTRA_SPECS to run.  */
/* { dg-do run { target sh*-*-* } } */
/* { dg-do compile } */
/* { dg-options "-B${srcdir}/gcc.dg --specs=foo.specs -tfoo" } */

extern void abort(void);

int main(void)
{
#ifdef FOO
  return 0;
#else
  abort();
#endif
}