Commit dcce8b1d by Phil Edwards

endif-pedantic1.c, [...]: New tests.

2002-03-26  Phil Edwards  <pme@gcc.gnu.org>

	* gcc.dg/cpp/endif-pedantic1.c,
	gcc.dg/cpp/endif-pedantic2.c:  New tests.

From-SVN: r51410
parent 361ea006
2002-03-26 Phil Edwards <pme@gcc.gnu.org>
* gcc.dg/cpp/endif-pedantic1.c,
gcc.dg/cpp/endif-pedantic2.c: New tests.
2002-03-26 Mark Mitchell <mark@codesourcery.com>
* g++.dg/init/new1.C: New test.
......
/* Copyright (C) 2002 Free Software Foundation, Inc. */
/* { dg-do preprocess } */
/* { dg-options "-pedantic -Wno-endif-labels" } */
/* Tests combinations of -pedantic and -Wno-endif-labels; see extratokens2.c
for more general tests. */
/* Source: Phil Edwards, 25 Mar 2002. Copied from extratokens2.c and
modified. */
#if 1
#if 0
#else foo /* { dg-bogus "extra tokens" "bad warning" } */
#endif / /* { dg-bogus "extra tokens" "bad warning" } */
#endif
/* Copyright (C) 2002 Free Software Foundation, Inc. */
/* { dg-do preprocess } */
/* { dg-options "-Wno-endif-labels -pedantic" } */
/* Tests combinations of -pedantic and -Wno-endif-labels; see extratokens2.c
for more general tests. */
/* Source: Phil Edwards, 25 Mar 2002. Copied from endif-pedantic1.c and
modified. */
#if 1
#if 0
#else foo /* { dg-error "extra tokens" "tokens after #else" } */
#endif / /* { dg-error "extra tokens" "tokens after #endif" } */
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment