From 57475c56804fad8c971f6c7280a08a0f0778b2c8 Mon Sep 17 00:00:00 2001 From: Clément Pit--Claudel Date: Mon, 6 Jul 2015 17:52:19 -0700 Subject: Add a new test, with a FIXME --- Test/dafny0/IndexIntoUpdate.dfy | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 Test/dafny0/IndexIntoUpdate.dfy (limited to 'Test/dafny0/IndexIntoUpdate.dfy') diff --git a/Test/dafny0/IndexIntoUpdate.dfy b/Test/dafny0/IndexIntoUpdate.dfy new file mode 100644 index 00000000..01359e04 --- /dev/null +++ b/Test/dafny0/IndexIntoUpdate.dfy @@ -0,0 +1,9 @@ +// RUN: %dafny /compile:0 /print:"%t.print" /dprint:"%t.dprint" "%s" > "%t" +// RUN: %diff "%s.expect" "%t" +method M() { + var s := [1, 2, 3, 4]; + assert 3 in s; + s := s[0 := 1]; + if * { assert 3 in s; } // FIXME: This should verify + else { assert s[2] == 3; assert 3 in s; } +} -- cgit v1.2.3