ref: 307dbb48fbf2067fa20ca3efb148870ae40b59d3
parent: c94328210580bb413ba01f7db622470e41676693
author: Roberto E. Vargas Caballero <[email protected]>
date: Sat Oct 30 15:39:24 EDT 2021
tests/cc: Add tests for casts to void These test cases were not tested at all.
--- /dev/null
+++ b/tests/cc/execute/0182-voidcast.c
@@ -1,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;
+}