commit 107d871adc180ab9c1d7254e30fc399f3cb259b8 parent b73e30e7049459fcb5e8d7035b5aa7a98b2d4023 Author: Roberto E. Vargas Caballero <k0ga@shike2.net> Date: Sun, 29 Mar 2026 21:37:33 +0200 tests/cc: Fix 0166-design Diffstat:
| M | tests/cc/execute/0166-desig.c | | | 12 | +++++++++++- |
| M | tests/cc/execute/scc-tests.lst | | | 2 | +- |
2 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/tests/cc/execute/0166-desig.c b/tests/cc/execute/0166-desig.c @@ -12,5 +12,15 @@ struct S { int main(void) { - return 0 == s.d[2]; + if (s.a != 1) + return 1; + if (s.b != 2) + return 2; + if (s.d[0] != 4) + return 3; + if (s.d[1] != 6) + return 4; + if (s.d[2] != 0) + return 5; + return 0; } diff --git a/tests/cc/execute/scc-tests.lst b/tests/cc/execute/scc-tests.lst @@ -156,7 +156,7 @@ 0163-array.c 0164-struct.c 0165-struct.c -0166-desig.c [TODO] +0166-desig.c 0167-array.c 0168-array.c 0169-string.c