C compiler with embedded metalanguage.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

20 rivejä
685 B

//generalized lvalues
foo() {
int a,b,f;
(a, b) += 5; // lvalue required as left operand of assignment
a, (b += 5);
&(a, b); // lvalue required as unary ‘&’ operand
a, &b;
(a ? b : c) = 5 ; // ‘c’ undeclared (first use in this function)
(a ? b = 5 : (c = 5)) ;
(int)a = 5 ; // lvalue required as left operand of assignment
(int)(a = (char *)(int)5) ;
(int)a += 5; // lvalue required as left operand of assignment
(int)(a = (char *)(int) ((int)a + 5));
(int)f = 1; // lvalue required as left operand of assignment
(int *)&f;
}