2 float id(float x) { return x; }
4 void Oassignments(float foo) // pass 1
8 bar = (foo ? 0 : (foo & 1));
10 error("FTEQCC SUCKS");
13 void Oreturn_only(float foo) // pass 0
21 void Oreturn_only_trap(void)
23 error("FTEQCC SUCKS");
27 void Ono_assignments(entity e, float wep) // pass an e with e.fld == 1, and wep == 3. e.fld will be 2 instead of 3. Observe the INDIRECT and the SUB use the same field for storage, wreaking havoc.
29 ((e).fld |= id(wep - 1));