Looks like Three cornered garlic, Allium Triquetrum.
When damaged, smells of garlic. Both leaves and bulbs can be eaten, although they are moderately poisonous if eaten to excess, especially to dogs.
Always best to find out more from other sources before taking the plunge.