24dc09a7fe
1999-04-03 10:35 -0500 Zack Weinberg <zack@rabi.columbia.edu> * gcc.dg/cpp-if1.c: Adjust regexps to accommodate cccp. * gcc.dg/cpp-if3.c: Don't use -pedantic. * gcc.misc-tests/m-un-2.c: Adjust regexps for new format of missing initializer warnings. From-SVN: r26150
35 lines
917 B
C
35 lines
917 B
C
/* { dg-do preprocess } */
|
|
/* { dg-options "-pedantic-errors" } */
|
|
|
|
#if 0xa != 10
|
|
#error 0xa != 10 /* { dg-bogus "#error" "normal conversion" } */
|
|
#endif
|
|
|
|
#if 077 != 63
|
|
#error 077 != 63 /* { dg-bogus "#error" "normal conversion" } */
|
|
#endif
|
|
|
|
#if 12wrt /* { dg-error "nvalid number|missing white" "invalid number" } */
|
|
#endif
|
|
|
|
#if 0abc /* { dg-error "nvalid number|missing white" "invalid number" } */
|
|
#endif
|
|
|
|
#if 42abc /* { dg-error "nvalid number|missing white" "invalid number" } */
|
|
#endif
|
|
|
|
#if 1.2 /* { dg-error "loating point numbers" "floating point in #if" } */
|
|
#endif
|
|
|
|
#if 4uu /* { dg-error "(too many|two) `u'" "too many suffixes" } */
|
|
#endif
|
|
|
|
#if 124123231lll /* { dg-error "too many `l'" "too many suffixes" } */
|
|
#endif
|
|
|
|
#if 099 /* { dg-error "digits beyond the radix" "decimal in octal constant" } */
|
|
#endif
|
|
|
|
#if 0xfffffffffffffffff /* { dg-error "integer constant out of range" "range error" } */
|
|
#endif
|