dillon@CORY.BERKELEY.EDU.UUCP (10/03/87)
:typedef struct {
:unsigned char *TEST1;
:} OTHER_STRUCT;
:
:typedef struct {
:OTHER_STRUCT TEST2;
:} THIS_STRUCT;
:
:main()
:{
:THIS_STRUCT *TESTC;
:
: if(TESTC->TEST2)
: exit(21);
:}
The conditional is not a valid C construct. You cannot test a
structure.... it does not matter that the structure contains one element.
Therefore, the only fault that can be attributed to manx is that perhaps
they do not give an error message.
>/* Don't mind what the program does. The assember should not be fed
>garbage like tst.r (a0) no matter what */
True, but the problem is not that the compiler produced bad code,
but that it produced code when it should not have.
-Matt