mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-21 18:01:15 +00:00
Extend nested struct test to cover struct copy
Fails :P
This commit is contained in:
parent
dd52b7fea1
commit
e0c8285f07
1 changed files with 8 additions and 0 deletions
|
@ -16,6 +16,8 @@ typedef struct Rect {
|
|||
} Rect;
|
||||
|
||||
Rect rect = {{1, 2}, {3, 4}};
|
||||
Point origin = {5, 6};
|
||||
Size size = {7, 8};
|
||||
|
||||
int
|
||||
test_struct_1(Rect rect)
|
||||
|
@ -49,5 +51,11 @@ main()
|
|||
ret |= test_struct_2(rect) != 2;
|
||||
ret |= test_struct_3(rect) != 3;
|
||||
ret |= test_struct_4(rect) != 4;
|
||||
rect.origin = origin;
|
||||
rect.size = size;
|
||||
ret |= test_struct_1(rect) != 5;
|
||||
ret |= test_struct_2(rect) != 6;
|
||||
ret |= test_struct_3(rect) != 7;
|
||||
ret |= test_struct_4(rect) != 8;
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue