view gcc/testsuite/gcc.dg/spec-options.c @ 152:2b5abeee2509

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents 04ced10e8804
children
line wrap: on
line source

/* 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 } */
/* { dg-options "-B${srcdir}/gcc.dg --specs=foo.specs -tfoo" } */

extern void abort(void);

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