* cpp.texi: Update for new command line assertion syntax. * cpplib.c (cpp_define): Simplify a bit. (cpp_assert, cpp_unassert): Use handle_assertion. (handle_assertion): New function; accept new command line syntax with '='. * testsuite/gcc.dg/cpp/assert3.c: New tests. From-SVN: r37171
11 lines
344 B
C
11 lines
344 B
C
/* Copyright (C) 2000 Free Software Foundation, Inc. */
|
|
|
|
/* { dg-do preprocess } */
|
|
/* { dg-options "-A abc=def -A abc\(ghi\) \"-Aabc = jkl\" -A abc=mno -A -abc=mno" } */
|
|
|
|
/* Test -A command line syntax. Source Neil Booth. 31 Oct 2000. */
|
|
|
|
#if !#abc (def) || !#abc (ghi) || !#abc (jkl) || #abc(mno)
|
|
#error Command line -A assertions
|
|
#endif
|