File: | src/gnu/usr.bin/binutils-2.17/obj/bfd/conftest.c |
Warning: | line 38, column 3 Value stored to 'ccp' is never read |
Press '?' to see keyboard shortcuts
Keyboard shortcuts:
1 | /* confdefs.h. */ |
2 | |
3 | #define PACKAGE_NAME"" "" |
4 | #define PACKAGE_TARNAME"" "" |
5 | #define PACKAGE_VERSION"" "" |
6 | #define PACKAGE_STRING"" "" |
7 | #define PACKAGE_BUGREPORT"" "" |
8 | #define PACKAGE"bfd" "bfd" |
9 | #define VERSION"2.17" "2.17" |
10 | #define USE_SECUREPLT1 1 |
11 | #define _GNU_SOURCE1 1 |
12 | #define STDC_HEADERS1 1 |
13 | /* end confdefs.h. */ |
14 | |
15 | int |
16 | main () |
17 | { |
18 | /* FIXME: Include the comments suggested by Paul. */ |
19 | #ifndef __cplusplus |
20 | /* Ultrix mips cc rejects this. */ |
21 | typedef int charset[2]; |
22 | const charset x; |
23 | /* SunOS 4.1.1 cc rejects this. */ |
24 | char const *const *ccp; |
25 | char **p; |
26 | /* NEC SVR4.0.2 mips cc rejects this. */ |
27 | struct point {int x, y;}; |
28 | static struct point const zero = {0,0}; |
29 | /* AIX XL C 1.02.0.0 rejects this. |
30 | It does not let you subtract one const X* pointer from another in |
31 | an arm of an if-expression whose if-part is not a constant |
32 | expression */ |
33 | const char *g = "string"; |
34 | ccp = &g + (g ? g-g : 0); |
35 | /* HPUX 7.0 cc rejects these. */ |
36 | ++ccp; |
37 | p = (char**) ccp; |
38 | ccp = (char const *const *) p; |
Value stored to 'ccp' is never read | |
39 | { /* SCO 3.2v4 cc rejects this. */ |
40 | char *t; |
41 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
42 | |
43 | *t++ = 0; |
44 | } |
45 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
46 | int x[] = {25, 17}; |
47 | const int *foo = &x[0]; |
48 | ++foo; |
49 | } |
50 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
51 | typedef const int *iptr; |
52 | iptr p = 0; |
53 | ++p; |
54 | } |
55 | { /* AIX XL C 1.02.0.0 rejects this saying |
56 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
57 | struct s { int j; const int *ap[3]; }; |
58 | struct s *b; b->j = 5; |
59 | } |
60 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
61 | const int foo = 10; |
62 | } |
63 | #endif |
64 | |
65 | ; |
66 | return 0; |
67 | } |