diff options
Diffstat (limited to 'gcc-4.8/gcc/testsuite/gcc.dg/cpp/lexident.c')
-rw-r--r-- | gcc-4.8/gcc/testsuite/gcc.dg/cpp/lexident.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/gcc-4.8/gcc/testsuite/gcc.dg/cpp/lexident.c b/gcc-4.8/gcc/testsuite/gcc.dg/cpp/lexident.c new file mode 100644 index 000000000..fdf54a2e2 --- /dev/null +++ b/gcc-4.8/gcc/testsuite/gcc.dg/cpp/lexident.c @@ -0,0 +1,25 @@ +/* Copyright (C) 2000 Free Software Foundation, Inc. */ + +/* { dg-do preprocess } */ +/* { dg-options "-trigraphs -fdollars-in-identifiers" } */ + +/* 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 |