From 515ba099a182a90085b0ded69f6eb40be1a50a7a Mon Sep 17 00:00:00 2001
From: Ralf Jung <jung@mpi-sws.org>
Date: Mon, 23 Apr 2018 19:26:15 +0200
Subject: [PATCH] add test for wp_apply and evars (#181)

---
 theories/tests/heap_lang.v | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/theories/tests/heap_lang.v b/theories/tests/heap_lang.v
index 87ed6c41f..0d6d2c8d9 100644
--- a/theories/tests/heap_lang.v
+++ b/theories/tests/heap_lang.v
@@ -104,6 +104,11 @@ Section LiftingTests.
   Lemma Pred_user E :
     WP let: "x" := Pred #42 in Pred "x" @ E [{ v, ⌜v = #40⌝ }]%I.
   Proof. iIntros "". wp_apply Pred_spec. wp_let. by wp_apply Pred_spec. Qed.
+
+  Lemma wp_apply_evar e :
+    (∀ Q Φ, Q -∗ WP e {{ Φ }}) -∗ WP e {{ _, True }}.
+  Proof. iIntros "H". wp_apply "H". done. Qed.
+
 End LiftingTests.
 
 Lemma heap_e_adequate σ : adequate NotStuck heap_e σ (= #2).
-- 
GitLab