I was messing around a bit in C while making a function, and somehow ended up with a comparison like this:
if (sizeAllocated > type_get_binary_size(data) > spaceAvailable)
The (for me) unexpected thing was that this compiled without so much as a warning (using IAR compiler for ARM, C99 standard with IAR extensions).
This doesn't look like it should be valid C (at least it's not a valid comparison in any other languages I can think about at the moment), can some gurus help me shed some light on whether this is some IAR-specific quirk or if it's actual standard C that's just too obscure to be included in any common tutorials?