First place an Armor Stand.
Second use the
/entitydata @e[type=ArmorStand,r=5] {Equipment:[{},{},{},{id:"minecraft:iron_chestplate"},{}]}
Third rightclick the chest plate to get 0 iron chestplates in your inventory
Fourth duplicate it with the pickblock button (middleclick) and put 1 in you armor slot
Fifth use /clear
Result: The 0 iron chestplates in your armor slot are still there.
And yes this bug report is useless because why whould anyone have 0 of an item but it's still a bug
Attachments
Comments 4
Can no longer confirm in 15w49b.
Command is now
/entitydata @e[type=ArmorStand,r=5] {ArmorItems:[{},{},2:{id:"minecraft:iron_chestplate"},{},{}]}
Zero-count item gets cleared with /clear
Confirmed for 1.8