2 !!DESCRIPTION!! this code is not supposed to compile
3 !!ORIGIN!! LCC 4.1 Testsuite
4 !!LICENCE!! own, freely distributeable for non-profit. read CPYRIGHT.LCC
13 || (a == 1 && (b == 'h' || b == 'i'))
14 || (a == 2 && (b == 'o' || b == 'y'))
20 void s(struct D *d) {} /* this struct D differs from the one below */
22 struct D {int x, y;} Dy={0};
32 const int a, *x; int b, *y;
37 z = z + z; /* should be 2 references to z's r-value */
45 f2(int **a, int **b) {
60 h1(const int x, int y) {
66 char *b; const void *p;
68 b = p; /* error (incompatible pointer type) */
73 extern int yy; set1() { { static yy=1; yy=2;} yy=4;}
74 static int yy; set2() { yy=5; {static yy=2; yy=3; }}
76 sss() { int goo; { static int goo();} goo=1;}
79 rrr(p) float *p; { extern int xr;
81 { extern int *xr; } p=&xr; }}
89 setstatic() { extern int ss1,ss2,ss3,ss4; ss1 = ss2; ss3 = ss4; ss5 = 0;}
94 /* function prototypes */
102 /* int gx1(x) double x; { gx1(&x); } */ /* error */
106 int hx1(double x,...); */ /* error */
109 int ff1(double x, int *y);
110 int ff1(x,y) float x; int y[]; {x=y[0];}
116 int hh1(const int x);
119 extern int strcmp(const char*, const char*);
120 extern void qsort(void*, int, int, int (*)(const void*, const void*));
121 extern int cmp(char**a, char**b) { return strcmp(*a,*b); }
124 qsort(a, n, sizeof(char*), (int (*)(const void*, const void*))cmp);
125 qsort(a, n, sizeof(char*), cmp); /* error (incompatible pointer type) */
132 f( ( (a? (b = 1): (c = 2)), (d ? 3 : 4) ) ); /* 1 argument */