mirror of https://github.com/rui314/chibicc
Remove duplicate struct tests
This commit is contained in:
parent
90d1f7f199
commit
0ce205ca0c
|
@ -41,11 +41,6 @@ int main() {
|
|||
ASSERT(7, ({ struct t {int a,b;}; struct t x; x.a=7; struct t y, *p=&x, *q=&y; *q=*p; y.a; }));
|
||||
ASSERT(5, ({ struct t {char a, b;} x, y; x.a=5; y=x; y.a; }));
|
||||
|
||||
ASSERT(3, ({ struct {int a,b;} x,y; x.a=3; y=x; y.a; }));
|
||||
ASSERT(7, ({ struct t {int a,b;}; struct t x; x.a=7; struct t y; struct t *z=&y; *z=x; y.a; }));
|
||||
ASSERT(7, ({ struct t {int a,b;}; struct t x; x.a=7; struct t y, *p=&x, *q=&y; *q=*p; y.a; }));
|
||||
ASSERT(5, ({ struct t {char a, b;} x, y; x.a=5; y=x; y.a; }));
|
||||
|
||||
ASSERT(8, ({ struct t {int a; int b;} x; struct t y; sizeof(y); }));
|
||||
ASSERT(8, ({ struct t {int a; int b;}; struct t y; sizeof(y); }));
|
||||
|
||||
|
|
Loading…
Reference in New Issue