Re: bugs: multiple assignment & unresolved symbols .Lexit_

Christof Douma <[email protected]>
Newsgroups gmane.comp.lang.c--
Message-ID <[email protected]>
> I attached an example.
I tried not to push the send button... :|
Here it is.
failedcase.cmm (text/plain, 421 B)
target
	byteorder little
	wordsize 32
	pointersize 32
	memsize 8
;

export main;
import printf;

section "data" {
	result: bits8[] "int: %d\n\0";
}

foreign "C" main(bits32 argc, "address" bits32 argv) {
	bits32 r;

	r = unresolved(1);
	foreign "C" return(r);
}

//this function result in a linkage error
unresolved(bits32 x) {
	switch x {
		case 1: {
			return(0);
		}
		case 2: {
			return(1);
		}
	}
}

/*
vim:ts=4
*/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.