8sa1-gcc/gcc/testsuite/gcc.dg/cpp/assert3.c
Neil Booth 86368122e6 cpp.texi: Update for new command line assertion syntax.
* 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
2000-10-31 23:34:59 +00:00

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