constexpr-52672.C (ul_ptr): Use SIZE_TYPE instead of hard-coded 'unsigned long'.
authorKai Tietz <ktietz@redhat.com>
Thu, 28 Jun 2012 20:29:20 +0000 (22:29 +0200)
committerKai Tietz <ktietz@gcc.gnu.org>
Thu, 28 Jun 2012 20:29:20 +0000 (22:29 +0200)
        * g++.dg/cpp0x/constexpr-52672.C (ul_ptr): Use SIZE_TYPE instead of
        hard-coded 'unsigned long'.

From-SVN: r189056

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/constexpr-52672.C

index d2ff7b93fe89619f40ffbec2007d7f29666e7271..7d1b5321cb34083f20f0e1830c89a4f0e4070e9f 100644 (file)
@@ -1,3 +1,8 @@
+2012-06-28  Kai Tietz  <ktietz@redhat.com>
+
+       * g++.dg/cpp0x/constexpr-52672.C (ul_ptr): Use SIZE_TYPE instead of
+       hard-coded 'unsigned long'.
+
 2012-06-28  Jakub Jelinek  <jakub@redhat.com>
 
        PR tree-optimization/51581
index 9f878780c7ce8816e26879eb9258365acff7b552..d05ad43d68610581b23e599eaa48ea0662c3f5a2 100644 (file)
@@ -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 "" }