aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/constexpr-offsetof.c
AgeCommit message (Collapse)AuthorFilesLines
2017-09-16use shorter name for constexpr testsLuc Van Oostenryck1-1/+1
The name used for these tests, while very correct, are a bit longuish. They generaly take more than one line on the screen which is annoying when running the testsuite. Change this by using shorter names for these tests. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
2017-03-31constexpr: examine constness of __builtin_offsetof at evaluation onlyNicolai Stange1-0/+21
Currently, the determination of a __builtin_offsetof() expressions' constness flags is done in two steps: - Several flags are speculatively set at expression parsing time - and possibly cleared again at evaluation if the member expression includes a non-const array index like in __builtin_offsetof(struct A, a.b[non_const_foo]) For consistency with other expression types' evaluation, defer the determination of a __builtin_offsetof() expression's constness to evaluation time, too. Furthermore, carry an array index expression's constness flags through the implicit cast to size_t type. Signed-off-by: Nicolai Stange <nicstange@gmail.com> Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>