Skip to content

Commit e0aed72

Browse files
Update virtual modifier warning tests
1 parent 505eecf commit e0aed72

35 files changed

+63
-3
lines changed

test/libsolidity/smtCheckerTests/modifiers/modifier_abstract.sol

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ abstract contract A {
55
// ====
66
// SMTEngine: all
77
// ----
8+
// Warning 8429: (51-72): Virtual modifiers are deprecated and scheduled for removal in the next breaking version (0.9).

test/libsolidity/smtCheckerTests/modifiers/modifier_overriding_1.sol

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,6 @@ contract B is A {
2020
// ====
2121
// SMTEngine: all
2222
// ----
23-
// Warning 6328: (209-223): CHC: Assertion violation happens here.
23+
// Warning 8429: (64-93): Virtual modifiers are deprecated and scheduled for removal in the next breaking version (0.9).
24+
// Warning 6328: (209-223): CHC: Assertion violation happens here.\nCounterexample:\ns = 42\nx = 42\n\nTransaction trace:\nB.constructor()\nState: s = 0\nB.set(42)\nState: s = 42\nA.f()
2425
// Info 1391: CHC: 1 verification condition(s) proved safe! Enable the model checker option "show proved safe" to see all of them.

test/libsolidity/smtCheckerTests/modifiers/modifier_overriding_2.sol

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,6 @@ contract C is B {
2323
// ====
2424
// SMTEngine: all
2525
// ----
26+
// Warning 8429: (113-136): Virtual modifiers are deprecated and scheduled for removal in the next breaking version (0.9).
27+
// Warning 8429: (159-213): Virtual modifiers are deprecated and scheduled for removal in the next breaking version (0.9).
2628
// Warning 6328: (66-75): CHC: Assertion violation happens here.\nCounterexample:\ns = false\n\nTransaction trace:\nB.constructor()\nState: s = false\nA.f()

test/libsolidity/smtCheckerTests/modifiers/modifier_overriding_3.sol

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,7 @@ contract B is A {
1818
// ====
1919
// SMTEngine: all
2020
// ----
21-
// Warning 6328: (94-104): CHC: Assertion violation happens here.
21+
// Warning 8429: (125-148): Virtual modifiers are deprecated and scheduled for removal in the next breaking version (0.9).
22+
// Warning 8429: (171-238): Virtual modifiers are deprecated and scheduled for removal in the next breaking version (0.9).
23+
// Warning 6328: (94-104): CHC: Assertion violation happens here.\nCounterexample:\ns = true\nx = true\n\nTransaction trace:\nB.constructor()\nState: s = false\nA.f()
2224
// Info 1391: CHC: 1 verification condition(s) proved safe! Enable the model checker option "show proved safe" to see all of them.

test/libsolidity/smtCheckerTests/modifiers/modifier_overriding_4.sol

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ contract D is B,C {
3636
// ====
3737
// SMTEngine: all
3838
// ----
39+
// Warning 8429: (262-294): Virtual modifiers are deprecated and scheduled for removal in the next breaking version (0.9).
40+
// Warning 8429: (317-367): Virtual modifiers are deprecated and scheduled for removal in the next breaking version (0.9).
41+
// Warning 8429: (390-440): Virtual modifiers are deprecated and scheduled for removal in the next breaking version (0.9).
42+
// Warning 8429: (465-520): Virtual modifiers are deprecated and scheduled for removal in the next breaking version (0.9).
3943
// Warning 6328: (160-174): CHC: Assertion violation happens here.\nCounterexample:\nx = 1\n\nTransaction trace:\nB.constructor()\nState: x = 0\nA.f()
4044
// Warning 6328: (193-207): CHC: Assertion violation happens here.\nCounterexample:\nx = 2\n\nTransaction trace:\nC.constructor()\nState: x = 0\nA.f()
4145
// Warning 6328: (226-240): CHC: Assertion violation happens here.\nCounterexample:\nx = 3\n\nTransaction trace:\nD.constructor()\nState: x = 0\nA.f()

test/libsolidity/smtCheckerTests/modifiers/modifier_virtual_static_call_1.sol

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ contract C is A {
1010
// ====
1111
// SMTEngine: all
1212
// ----
13+
// Warning 8429: (17-52): Virtual modifiers are deprecated and scheduled for removal in the next breaking version (0.9).

test/libsolidity/smtCheckerTests/modifiers/modifier_virtual_static_call_2.sol

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,6 @@ contract C is A {
2020
// ====
2121
// SMTEngine: all
2222
// ----
23-
// Warning 6328: (83-98): CHC: Assertion violation happens here.
23+
// Warning 8429: (27-122): Virtual modifiers are deprecated and scheduled for removal in the next breaking version (0.9).
24+
// Warning 6328: (83-98): CHC: Assertion violation happens here.\nCounterexample:\nx = 0\n = 0\n\nTransaction trace:\nC.constructor()\nState: x = 0\nC.f()
2425
// Info 1391: CHC: 1 verification condition(s) proved safe! Enable the model checker option "show proved safe" to see all of them.

test/libsolidity/syntaxTests/controlFlow/modifiers/implemented_without_placeholder.sol

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ abstract contract A {
66
}
77
// ----
88
// SyntaxError 2883: (129-132): Modifier body does not contain '_'.
9+
// Warning 8429: (106-132): Virtual modifiers are deprecated and scheduled for removal in the next breaking version (0.9).

test/libsolidity/syntaxTests/controlFlow/modifiers/modifier_different_functions.sol

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ contract A {
99
}
1010
}
1111
// ----
12+
// Warning 8429: (140-172): Virtual modifiers are deprecated and scheduled for removal in the next breaking version (0.9).
1213
// TypeError 3464: (118-132): This variable is of storage pointer type and can be returned without prior assignment, which would lead to undefined behaviour.

test/libsolidity/syntaxTests/controlFlow/modifiers/modifier_override.sol

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,6 @@ contract B is A {
1313
}
1414
}
1515
// ----
16+
// Warning 8429: (71-115): Virtual modifiers are deprecated and scheduled for removal in the next breaking version (0.9).
1617
// Warning 5740: (65-69): Unreachable code.
1718
// TypeError 3464: (49-63): This variable is of storage pointer type and can be returned without prior assignment, which would lead to undefined behaviour.

0 commit comments

Comments
 (0)