Tests putting void in getchar()