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