summaryrefslogtreecommitdiffstats
path: root/spec/rtems/basedefs/req/const-0.yml
diff options
context:
space:
mode:
Diffstat (limited to 'spec/rtems/basedefs/req/const-0.yml')
-rw-r--r--spec/rtems/basedefs/req/const-0.yml22
1 files changed, 22 insertions, 0 deletions
diff --git a/spec/rtems/basedefs/req/const-0.yml b/spec/rtems/basedefs/req/const-0.yml
new file mode 100644
index 00000000..47601ca3
--- /dev/null
+++ b/spec/rtems/basedefs/req/const-0.yml
@@ -0,0 +1,22 @@
+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/const
+non-functional-type: interface
+rationale: null
+references: []
+requirement-type: non-functional
+text: |
+ When the code is compiled with the GNU C compiler,
+ and the ${../if/const:/name} macro is attached to a
+ function declaration or definition,
+ and the return value of that function is not affected by changes
+ to the observable state of the program and that function has
+ no observable effects on such state other than to return a value,
+ the ${../if/const:/name} macro shall permit the compiler to replace
+ subsequent calls to the function with the same argument values by the
+ result of the first call.
+type: requirement