This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Yesterday's testcases


Joseph,

Yesterday you submitted 2 integer testcases (I can't reply to your
mail since my ISP appears to have managed to lose over 12 hrs of
incoming e-mail).

The cases contained:

/* (T *) if E is zero, (void *) otherwise.  */
#define type_if_not(T, E) __typeof__(0 ? (T *)0 : (void *)(E))

Is this not a typo?  That looks equivalent to

#define type_if_not(T, E) __typeof__((void *)(E))

and

#define type_if_not(T, E) (void *)

which doesn't depend on T or E.

Neil.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]