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
[email protected]
https://lists.sourceforge.net/lists/listinfo/sdcc-user