8sa1-gcc/gcc/testsuite/gcc.dg/cpp/lexident.c
Neil Booth 043afb2a08 cpplex.c: Fix trigraph replacement within strings.
* cpplex.c: Fix trigraph replacement within strings.
	* gcc.dg/cpp/lexident.c, gcc.dg/cpp/lexnum.c,
	  gcc.dg/cpp/lexstrng.c: New tests.

From-SVN: r34868
2000-07-04 22:26:16 +00:00

26 lines
312 B
C

/* Copyright (C) 2000 Free Software Foundation, Inc. */
/* { dg-do preprocess } */
/* { dg-options "-trigraphs" } */
/* Test lexing of identifiers. */
/* Escaped newlines, _ and $ in identifiers. */
#def\
\
ine foo_
#d\
ef??/
in\
e b\
a$r
#ifndef foo_
#error foo_
#endif
#ifndef ba$r
#error ba$r
#endif