aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/constexpr-pointer-cast.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 castsNicolai Stange1-0/+13
According to 6.6(9), an address constant may get created by casting an integer constant to pointer type. Make evaluate_cast() handle this case, that is tag a cast expression as being an address constant if the target is a integer constant and the destination is of pointer type. Signed-off-by: Nicolai Stange <nicstange@gmail.com> Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>