aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/constexpr-pointer-arith.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: recognize address constants created through pointer arithmeticNicolai Stange1-0/+28
An address constant +/- an integer constant expression qualifies as an address constant again. Furthermore, the array-subscript operator "[]" may be used in the creation of address constant. Handle both cases by making evaluate_ptr_add() check whether an integer constant expression is added to an address constant and tag the result as being an address constant again if so. Signed-off-by: Nicolai Stange <nicstange@gmail.com> Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>