@ -1,7 +1,7 @@ | |||||
main() { | main() { | ||||
int a; | int a; | ||||
typedef b = (a); | |||||
typedef b = (a); // typedef ‘b’ is initialized (use __typeof__ instead) | |||||
typeof (int *) c; | typeof (int *) c; | ||||
typeof (d[0](1)) e; | |||||
typeof (d[0](1)) e; // ‘d’ undeclared (first use in this function) | |||||
c = &a; | c = &a; | ||||
} | |||||
} |
@ -1,20 +1,20 @@ | |||||
//generalized lvalues | //generalized lvalues | ||||
foo() { | foo() { | ||||
int a,b,f; | int a,b,f; | ||||
(a, b) += 5; | |||||
a, (b += 5); | |||||
&(a, b); | |||||
(a, b) += 5; // lvalue required as left operand of assignment | |||||
a, (b += 5); | |||||
&(a, b); // lvalue required as unary ‘&’ operand | |||||
a, &b; | a, &b; | ||||
(a ? b : c) = 5 ; | |||||
(a ? b : c) = 5 ; // ‘c’ undeclared (first use in this function) | |||||
(a ? b = 5 : (c = 5)) ; | (a ? b = 5 : (c = 5)) ; | ||||
(int)a = 5 ; | |||||
(int)a = 5 ; // lvalue required as left operand of assignment | |||||
(int)(a = (char *)(int)5) ; | (int)(a = (char *)(int)5) ; | ||||
(int)a += 5; | |||||
(int)a += 5; // lvalue required as left operand of assignment | |||||
(int)(a = (char *)(int) ((int)a + 5)); | (int)(a = (char *)(int) ((int)a + 5)); | ||||
(int)f = 1; | |||||
(int)f = 1; // lvalue required as left operand of assignment | |||||
(int *)&f; | (int *)&f; | ||||
} | } | ||||
@ -1,6 +1,5 @@ | |||||
func (x, y) { | func (x, y) { | ||||
int x, y; | |||||
int x, y; // ‘x’ redeclared as different kind of symbol / ‘y’ redeclared as different kind of symbol | |||||
return x+y; | return x+y; | ||||
} | } | ||||
@ -1,6 +1,6 @@ | |||||
void F(char l) | void F(char l) | ||||
{ | { | ||||
return l<= '\~'; | |||||
return l<= '\~'; // ‘return’ with a value, in function returning void / unknown escape sequence: '\~' | |||||
} | } | ||||
@ -1,4 +1,3 @@ | |||||
f (__builtin_va_alist ) | f (__builtin_va_alist ) | ||||
int __builtin_va_alist;... | |||||
{ } | |||||
int __builtin_va_alist;... // expected declaration specifiers before ‘...’ token | |||||
{ } // expected ‘{’ at end of input |