summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/cpp/lexident.c
blob: fdf54a2e2c5a127588c01c80b0fafe711a658fe0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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