comparison gcc/testsuite/gcc.dg/spec-options.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
comparison
equal deleted inserted replaced
68:561a7518be6b 111:04ced10e8804
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 }