diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index d2ff7b93fe89..7d1b5321cb34 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2012-06-28 Kai Tietz + + * g++.dg/cpp0x/constexpr-52672.C (ul_ptr): Use SIZE_TYPE instead of + hard-coded 'unsigned long'. + 2012-06-28 Jakub Jelinek PR tree-optimization/51581 diff --git a/gcc/testsuite/g++.dg/cpp0x/constexpr-52672.C b/gcc/testsuite/g++.dg/cpp0x/constexpr-52672.C index 9f878780c7ce..d05ad43d6861 100644 --- a/gcc/testsuite/g++.dg/cpp0x/constexpr-52672.C +++ b/gcc/testsuite/g++.dg/cpp0x/constexpr-52672.C @@ -2,7 +2,7 @@ // { dg-do compile } // { dg-options "-std=c++11" } -typedef unsigned long * ul_ptr; +__extension__ typedef __SIZE_TYPE__ * ul_ptr; constexpr unsigned long a = *((ul_ptr)0x0); // { dg-error "" } constexpr unsigned long b = *((ul_ptr)(*((ul_ptr)0x0))); // { dg-error "" } constexpr unsigned long c = *((ul_ptr)*((ul_ptr)(*((ul_ptr)0x0)))); // { dg-error "" }