OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [gcc.dg/] [cpp/] [if-1.c] - Blame information for rev 338

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* { dg-do preprocess } */
2
/* { dg-options "-pedantic-errors" } */
3
 
4
#if 0xa != 10
5
#error 0xa != 10 /* { dg-bogus "#error" "normal conversion" } */
6
#endif
7
 
8
#if 077 != 63
9
#error 077 != 63 /* { dg-bogus "#error" "normal conversion" } */
10
#endif
11
 
12
#if 12wrt /* { dg-error "invalid suffix" "invalid number" } */
13
#endif
14
 
15
#if 0abc /* { dg-error "invalid suffix" "invalid number" } */
16
#endif
17
 
18
#if 42abc /* { dg-error "invalid suffix" "invalid number" } */
19
#endif
20
 
21
#if 0xabc != 2748
22
#error 0xabc    /* { dg-bogus "#error" "normal conversion" } */
23
#endif
24
 
25
#if 1.2 /* { dg-error "loating constant" "floating point in #if" } */
26
#endif
27
 
28
#if 4uu /* { dg-error "invalid suffix" "too many suffixes" } */
29
#endif
30
 
31
#if 124123231lll /* { dg-error "invalid suffix" "too many suffixes" } */
32
#endif
33
 
34
#if 1234lul     /* { dg-error "invalid suffix" "u between ls" } */
35
#endif
36
 
37
#if 099 /* { dg-error "invalid digit" "decimal in octal constant" } */
38
#endif
39
 
40
#if 0xfffffffffffffffff /* { dg-error "integer constant" "range error" } */
41
#endif

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.