commit 307dbb48fbf2067fa20ca3efb148870ae40b59d3 parent c94328210580bb413ba01f7db622470e41676693 Author: Roberto E. Vargas Caballero <k0ga@shike2.com> Date: Sat, 30 Oct 2021 19:39:24 +0200 tests/cc: Add tests for casts to void These test cases were not tested at all. Diffstat:
| A | tests/cc/execute/0182-voidcast.c | | | 19 | +++++++++++++++++++ |
1 file changed, 19 insertions(+), 0 deletions(-)
diff --git a/tests/cc/execute/0182-voidcast.c b/tests/cc/execute/0182-voidcast.c @@ -0,0 +1,19 @@ +int +main() +{ + int i; + char c; + float f; + int *ptr; + enum { + INT + } e; + + (void) i; + (void) c; + (void) f; + (void) ptr; + (void) e; + + return 0; +}