a++ is a post increment, so a is assigned the value of a (always 0), and the ghost variable of a is incremented afterwards making no difference to the real a and no result being saved.
As a result, a is always assigned to 0, thus the code does nothing