summaryrefslogtreecommitdiffstats
path: root/spec/rtems/basedefs/req/alignof-2.yml
blob: 8eb596789b472b01b53362a89927235f100801ab (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
SPDX-License-Identifier: CC-BY-SA-4.0
copyrights:
- Copyright (C) 2021 embedded brains GmbH (http://www.embedded-brains.de)
enabled-by: true
functional-type: function
links:
- role: interface-function
  uid: ../if/alignof
rationale: null
references: []
requirement-type: functional
text: |
  When the code is compiled with a C compiler and
  the ``__STDC_VERSION__`` symbol is defined with version ``201112L`` or
  higher or
  the code is compiled with a C++ compiler
  and the ``__cplusplus`` symbol is defined with version ``201103L`` or higher,
  when the argument ${../if/alignof:/params[0]/name} is an array type
  with none constant size expression,
  the macro ${../if/alignof:/name} shall not evaluate the size expression.
type: requirement