From 0ff7968cc08d4307e10256b44748bbcd79191497 Mon Sep 17 00:00:00 2001 From: Kai Tietz Date: Thu, 28 Jun 2012 22:29:20 +0200 Subject: [PATCH] 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 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/g++.dg/cpp0x/constexpr-52672.C | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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 "" }