* 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
26 lines
312 B
C
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
|