Integrate upstream chibicc changes

This commit is contained in:
Justine Tunney 2020-12-09 04:13:14 -08:00
parent 9df2cef4c4
commit 2ed7956be4
2 changed files with 25 additions and 1 deletions

View file

@ -374,6 +374,24 @@ int main() {
};
sizeof(T);
}));
ASSERT(2, ({
struct {
int a;
} x = {1}, y = {2};
(x = y).a;
}));
ASSERT(1, ({
struct {
int a;
} x = {1}, y = {2};
(1 ? x : y).a;
}));
ASSERT(2, ({
struct {
int a;
} x = {1}, y = {2};
(0 ? x : y).a;
}));
return 0;
}