1999-01-22 05:33:38 -05:00
|
|
|
/* { dg-do preprocess } */
|
|
|
|
/* { dg-options "-pedantic-errors" } */
|
|
|
|
|
1999-02-28 10:05:41 -05:00
|
|
|
#if 0xa != 10
|
|
|
|
#error 0xa != 10 /* { dg-bogus "#error" "normal conversion" } */
|
1999-01-22 05:33:38 -05:00
|
|
|
#endif
|
|
|
|
|
1999-02-28 10:05:41 -05:00
|
|
|
#if 077 != 63
|
|
|
|
#error 077 != 63 /* { dg-bogus "#error" "normal conversion" } */
|
1999-01-22 05:33:38 -05:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#if 12wrt /* { dg-error "nvalid number" "invalid number" } */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if 0abc /* { dg-error "nvalid number" "invalid number" } */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if 42abc /* { dg-error "nvalid number" "invalid number" } */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if 1.2 /* { dg-error "floating point numbers" "floating point in #if" } */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if 4uu /* { dg-error "too many `u' suffixes" "too many suffixes" } */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if 124123231lll /* { dg-error "too many `l' suffixes" "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
|