aboutsummaryrefslogtreecommitdiff
path: root/test-suite
diff options
context:
space:
mode:
authorVincent Laporte2019-05-09 13:39:25 +0000
committerVincent Laporte2019-05-10 16:06:11 +0000
commit34e84eafe6615055071fbdc4aaee70c4c161a0fb (patch)
treeb02cb2ca98a90d8277c69bca8bc801f98f2e7c5c /test-suite
parentba62d040b8ff53ce66c2dbaa83a44b0037cb620f (diff)
[Attributes] Allow explicit value for two-valued attributes
Attributes that enable/disable a feature can have an explicit value (default is enable when the attribute is present). Three-valued boolean attributes do not support this: what would `#[local(false)]` mean?
Diffstat (limited to 'test-suite')
-rw-r--r--test-suite/success/attribute_syntax.v4
1 files changed, 4 insertions, 0 deletions
diff --git a/test-suite/success/attribute_syntax.v b/test-suite/success/attribute_syntax.v
index f4f59a3c16..4717759dec 100644
--- a/test-suite/success/attribute_syntax.v
+++ b/test-suite/success/attribute_syntax.v
@@ -20,6 +20,10 @@ Check ι _ ι.
Fixpoint f (n: nat) {wf lt n} : nat := _.
Reset f.
+#[program(true)]
+Fixpoint f (n: nat) {wf lt n} : nat := _.
+Reset f.
+
#[deprecated(since="8.9.0")]
Ltac foo := foo.