commit 3fec6915074c2fb31d3e955ad9eee51c091df1cc parent a76a140d9965d255ecb952c8d9522c3f2036c280 Author: Roberto E. Vargas Caballero <k0ga@shike2.com> Date: Wed, 1 Jan 2025 21:56:43 +0100 tests/cc: Add 0228-extrcast.c Diffstat:
A | tests/cc/execute/0228-extrcast.c | | | 9 | +++++++++ |
M | tests/cc/execute/scc-tests.lst | | | 1 | + |
2 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/tests/cc/execute/0228-extrcast.c b/tests/cc/execute/0228-extrcast.c @@ -0,0 +1,9 @@ +int atoi(const char *); + +void *p[] = {atoi}; + +int +main(void) +{ + return p[0] == 0; +} diff --git a/tests/cc/execute/scc-tests.lst b/tests/cc/execute/scc-tests.lst @@ -218,3 +218,4 @@ 0225-func.c 0226-pointer.c 0227-sizeof.c +0228-extrcast.c