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