X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=libstdc%2B%2B-v3%2Ftestsuite%2F23_containers%2Fbitset%2F45713.cc;h=0b3640c1e29fe1a1be7618cd660f4b3052852b5d;hb=4d8cd3a26294ce35abb17668eac2b6c38dd23bd0;hp=8d369d63e18d7e495c7a9f4eaa8aaa7cc54c38fd;hpb=c944d49b3bd3667c65c299afd3b1d756084203f4;p=platform%2Fupstream%2Fgcc48.git diff --git a/libstdc++-v3/testsuite/23_containers/bitset/45713.cc b/libstdc++-v3/testsuite/23_containers/bitset/45713.cc index 8d369d6..0b3640c 100644 --- a/libstdc++-v3/testsuite/23_containers/bitset/45713.cc +++ b/libstdc++-v3/testsuite/23_containers/bitset/45713.cc @@ -1,4 +1,4 @@ -// Copyright (C) 2010 Free Software Foundation, Inc. +// Copyright (C) 2010-2013 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -15,11 +15,12 @@ // with this library; see the file COPYING3. If not see // . -// { dg-do compile } +// The testcase requires bitsizetype to be wider than sizetype, +// otherwise types/vars with (e.g. for 32-bit sizetype) 0x20000000 +// bytes or larger can't be used. See http://gcc.gnu.org/PR54897 +// { dg-do compile { target { ! { avr*-*-* cris*-*-* h8300*-*-* mcore*-*-* moxie*-*-* mmix-*-* } } } } #include // libstdc++/45713 -#if __SIZEOF_SIZE_T__ >= 4 -int test[sizeof(std::bitset<0xffffffff>) != 1 ? 1 : -1]; -#endif +int test[sizeof(std::bitset<__SIZE_MAX__>) != 1 ? 1 : -1];