Step 1: Classify the drug first. Pirenzepine is an anticholinergic with selectivity for the M1 muscarinic subtype, distinguishing it from broad atropine-like agents.
Step 2: The M1 receptor drives vagal stimulation of gastric acid output. Antagonising it lowers acid secretion, which is exactly what you want in acid-peptic disease.
Step 3: Because it acts at modest doses with limited systemic muscarinic blockade, its clinical use is for gastric ulcer.
Step 4: The remaining options need entirely different drug classes - miotics or beta-blockers for glaucoma, and cardiovascular agents for hypertension and heart failure - so none applies.
\[\boxed{\text{Gastric ulcer}}\]