Commit c4a3362c authored by Sergio Costas's avatar Sergio Costas

Added comments

Added the last two tests
parent 3aae8dc7
......@@ -10,7 +10,7 @@ void main(crust_t param) {
__crust_debug__
alias1 = param;
__crust_debug__
alias2 = alias1;
alias2 = alias1; // All this is legal
__crust_debug__
__crust_disable__
}
......@@ -12,7 +12,7 @@ void main(crust_t param1, crust_t param2) {
__crust_debug__
alias2 = alias1;
__crust_debug__
alias1 = param2;
alias1 = param2; // All this is legal
__crust_debug__
__crust_disable__
}
......@@ -19,7 +19,7 @@ void main(crust_t param) {
__crust_debug__
alias1 = param->next;
__crust_debug__
alias2->next = alias1;
alias2->next = alias1; // All this is legal
__crust_debug__
__crust_disable__
......
__crust_t__ struct t_crust_t {
int value;
__crust_t__ struct t_crust_t *next;
}
typedef struct t_crust_t *crust_t;
#define NULL ((void *)0)
void main(crust_t param) {
crust_t __crust_alias__ alias1;
crust_t __crust_alias__ alias2;
__crust_debug__
alias1 = param;
__crust_debug__
alias2 = alias1;
__crust_debug__
alias2->next = alias1; // All this is legal
__crust_debug__
__crust_disable__
}
__crust_t__ struct t_crust_t {
int value;
__crust_t__ struct t_crust_t *next;
}
typedef struct t_crust_t *crust_t;
#define NULL ((void *)0)
void main(crust_t param1, crust_t param2) {
crust_t __crust_alias__ alias1;
crust_t __crust_alias__ alias2;
__crust_debug__
alias1 = param1;
__crust_debug__
alias2 = param2;
__crust_debug__
alias2->next = alias1; // All this is legal
__crust_debug__
__crust_disable__
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment