From: Alan T. DeKok Date: Sun, 20 Aug 2023 22:22:05 +0000 (-0400) Subject: we can copy immutable values, and the copy is mutable X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=84e3b5be197945ec30249d6103b0ff4b4c6e1adf;p=thirdparty%2Ffreeradius-server.git we can copy immutable values, and the copy is mutable --- diff --git a/src/tests/keywords/immutable b/src/tests/keywords/immutable index 8f5af3ca97a..bd21f1071a7 100644 --- a/src/tests/keywords/immutable +++ b/src/tests/keywords/immutable @@ -39,4 +39,17 @@ if !(&NAS-Port == 1813) { test_fail } +# +# We can copy the immutable value. The copy is mutable. +# +&Tmp-Integer-0 := &NAS-Port +if !(&Tmp-Integer-0 == 1813) { + test_fail +} + +&Tmp-Integer-0 += 1 +if !(&Tmp-Integer-0 == 1814) { + test_fail +} + success