diff options
Diffstat (limited to 'spec/rtems/basedefs/req/deconst-0.yml')
-rw-r--r-- | spec/rtems/basedefs/req/deconst-0.yml | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/spec/rtems/basedefs/req/deconst-0.yml b/spec/rtems/basedefs/req/deconst-0.yml new file mode 100644 index 00000000..c3b1aff0 --- /dev/null +++ b/spec/rtems/basedefs/req/deconst-0.yml @@ -0,0 +1,20 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 +copyrights: +- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) +enabled-by: true +links: +- role: requirement-refinement + uid: ../if/deconst +non-functional-type: interface +rationale: null +references: [] +requirement-type: non-functional +text: | + When ${../if/deconst:/params[0]/name} is a non-const pointer type, + and ${../if/deconst:/params[1]/name} is a pointer to a value of const type, + and the types of ${../if/deconst:/params[0]/name} and + ${../if/deconst:/params[1]/name} are compatible in the sense of C, + the macro ${../if/deconst:/name} shall result in an expression + which returns a pointer of type ${../if/deconst:/params[0]/name} pointing + to the same address as ${../if/deconst:/params[1]/name}. +type: requirement |