Table salt is safe, but you definetively not want to eat a full glass of table salt. I guess it's fatal.
Sugar is perhaps safe, there is a test for diabetes during pregnancy that consist in drinking a (small) glass of very concentrated sugar solution. I think it's not a full glass, so don't try it without medical doctor authorization and supervision.
A glass of food oil? Does it give you diarrhea?
A glass of alcohol? It's like two glasses of vodka. I think you get alcoholic coma or worse.
Also, the level of purification is different for food/medicine and other applications. Don't try to eat the salt that is sold to clean snow.