summaryrefslogtreecommitdiff
path: root/tests/Kref
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2017-09-17 04:23:40 +0200
committerUlf Magnusson <ulfalizer@gmail.com>2017-09-18 06:49:44 +0200
commitfffd30e6ea060b2abebb7ba9cdf881da00ca4cb9 (patch)
tree6c30bd54f2cc5349a9ee93bb0f6dcec8771d7726 /tests/Kref
parent35ea8d5f1d63bdc9f8642f5ce4445e8f7c914385 (diff)
Add 'imply' support
This is like a 'select' that only changes the default value of a symbol, not limiting what values the user can set it to (with one exception: A symbol implied to 'y' can't be set to 'm'). Symbol.get_implied_symbols() was added, corresponding to Symbol.get_selected_symbols(), and Symbol.__str__() was extended to print implied symbols and weak reverse dependencies. Weak reverse dependencies are the 'imply' version of 'select's reverse dependencies.
Diffstat (limited to 'tests/Kref')
-rw-r--r--tests/Kref2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/Kref b/tests/Kref
index a398c1a..a60561e 100644
--- a/tests/Kref
+++ b/tests/Kref
@@ -18,6 +18,8 @@ config MANY_REF
depends on H
select I if J = K || L != M
select N if (A || !(B && (C = O)))
+ imply P if Q = R || S != T
+ imply U if (A || !(B && (C = V)))
endif