diff options
author | Valentin Wüstholz <wuestholz@gmail.com> | 2015-11-16 12:13:45 -0600 |
---|---|---|
committer | Valentin Wüstholz <wuestholz@gmail.com> | 2015-11-16 12:13:45 -0600 |
commit | 75a179354ea7b78682904575d5692efa0068fcf0 (patch) | |
tree | d08229c9b1fd7a159d7bf9023b7bb8c091678557 | |
parent | f049d2ec646244bc40964b36d961966fe2a3e4dc (diff) |
Add a test.
-rw-r--r-- | Test/test1/StatementIds0.bpl | 15 | ||||
-rw-r--r-- | Test/test1/StatementIds0.bpl.expect | 3 |
2 files changed, 18 insertions, 0 deletions
diff --git a/Test/test1/StatementIds0.bpl b/Test/test1/StatementIds0.bpl new file mode 100644 index 00000000..85b9cd36 --- /dev/null +++ b/Test/test1/StatementIds0.bpl @@ -0,0 +1,15 @@ +// RUN: %boogie -noVerify "%s" > "%t" +// RUN: %diff "%s.expect" "%t" + +procedure test0(n: int) +{ + assume {:id "s0"} 0 < n; + assert {:id "s0"} 0 < n; +} + +procedure test1(n: int) +{ + call {:id "s0"} P(); +} + +procedure P(); diff --git a/Test/test1/StatementIds0.bpl.expect b/Test/test1/StatementIds0.bpl.expect new file mode 100644 index 00000000..944c3257 --- /dev/null +++ b/Test/test1/StatementIds0.bpl.expect @@ -0,0 +1,3 @@ +StatementIds0.bpl(7,4): Error: more than one statement with same id: s0 +StatementIds0.bpl(12,4): Error: more than one statement with same id: s0 +2 name resolution errors detected in StatementIds0.bpl |