mirror of git://gcc.gnu.org/git/gcc.git
constexpr-52672.C (ul_ptr): Use SIZE_TYPE instead of hard-coded 'unsigned long'.
* g++.dg/cpp0x/constexpr-52672.C (ul_ptr): Use SIZE_TYPE instead of
hard-coded 'unsigned long'.
From-SVN: r189056
This commit is contained in:
parent
9965157413
commit
0ff7968cc0
|
|
@ -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>
|
2012-06-28 Jakub Jelinek <jakub@redhat.com>
|
||||||
|
|
||||||
PR tree-optimization/51581
|
PR tree-optimization/51581
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
// { dg-do compile }
|
// { dg-do compile }
|
||||||
// { dg-options "-std=c++11" }
|
// { 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 a = *((ul_ptr)0x0); // { dg-error "" }
|
||||||
constexpr unsigned long b = *((ul_ptr)(*((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 "" }
|
constexpr unsigned long c = *((ul_ptr)*((ul_ptr)(*((ul_ptr)0x0)))); // { dg-error "" }
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue