]> git.gag.com Git - fw/sdcc/blobdiff - support/regression/tests/vaargs.c
* src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
[fw/sdcc] / support / regression / tests / vaargs.c
index 0b9ef4e93bb10ef0232be610ebc98a8fdf38645a..49beb2f576813a34e4f9b3849564e588358735d3 100644 (file)
@@ -1,13 +1,20 @@
 /** Tests argument passing to functions via va_args.
     Assumes that up to the first two arguments can be passed in registers.
 
-    type1: char, int
-    type2: char, int
-    type3: char, int
+    type1: va_char, int
+    type2: va_char, int
+    type3: va_char, int
  */
 #include <testfwk.h>
 #include <stdarg.h>
 
+/* gcc 3.3 throws a warning, if char is in '...' */
+#if defined(PORT_HOST)
+# define va_char int
+#else
+# define va_char char
+#endif
+
 static {type1}
 returnFirstArg(int marker, ...)
 {