blob: 9b7c8d3b9976a5de82d7e0ae8b432b4904d85241 (
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
26
27
28
29
30
31
32
33
34
|
/* { 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 '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
|