1 /* Copyright (C) 2000 Free Software Foundation, Inc. */
4 /* { dg-options "-trigraphs" } */
6 /* Test lexing of numbers. */
8 extern int puts (const char *);
9 extern void abort (void);
10 #define err(str) do { puts(str); abort(); } while (0)
12 /* Escaped newlines. */
23 int main (int argc
, char *argv
[])
28 /* Decimal points, including initially and immediately before and
29 after an escaped newline. */
41 /* Test exponentials and their signs. A buggy lexer is more likely
42 to fail the compile, but never mind. */
43 if (250 != 25e+1 || 250 != 25e1
|| 250 != 2500e-1)
46 /* Todo: p exponentials, and how to test preprocessing number