Hello ...? Well if the source is different so will be the result. What was your expectation and what was the result? Why do you think there is a bug?
Maarten > I'm so good at English shows the source. > And the results vary with / uncomment the line 9. > Is this a known bug? > > #include <stdarg.h> > extern char test1(char* pb, ...); > extern char test2(char* pb); > struct { > char* buf; > } fnc; > char* buf; > char test1(char* pb, ...) { > // buf = pb; > fnc.buf = pb; > return 0; > } > char test2(char* pb) { > fnc.buf = pb; > return 0; > } > void main(void) > { > test1((void*)0, (void*)0, 0); > test2((void*)0); > } > > ------------------------------------------------------------------------------ > The demand for IT networking professionals continues to grow, and the > demand for specialized networking skills is growing even more rapidly. > Take a complimentary Learning@Ciosco Self-Assessment and learn > about Cisco certifications, training, and career opportunities. > http://p.sf.net/sfu/cisco-dev2dev > _______________________________________________ > Sdcc-user mailing list > Sdcc-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/sdcc-user > ------------------------------------------------------------------------------ The demand for IT networking professionals continues to grow, and the demand for specialized networking skills is growing even more rapidly. Take a complimentary Learning@Ciosco Self-Assessment and learn about Cisco certifications, training, and career opportunities. http://p.sf.net/sfu/cisco-dev2dev _______________________________________________ Sdcc-user mailing list Sdcc-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sdcc-user