]>
Commit | Line | Data |
---|---|---|
99dee823 | 1 | // Copyright (C) 2010-2021 Free Software Foundation, Inc. |
fc99f780 LH |
2 | // |
3 | // This file is part of the GNU ISO C++ Library. This library is free | |
4 | // software; you can redistribute it and/or modify it under the | |
5 | // terms of the GNU General Public License as published by the | |
6 | // Free Software Foundation; either version 3, or (at your option) | |
7 | // any later version. | |
8 | ||
9 | // This library is distributed in the hope that it will be useful, | |
10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of | |
11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
12 | // GNU General Public License for more details. | |
13 | ||
14 | // You should have received a copy of the GNU General Public License along | |
15 | // with this library; see the file COPYING3. If not see | |
16 | // <http://www.gnu.org/licenses/>. | |
17 | ||
1e2a71c8 | 18 | // The testcase requires bitsizetype to be wider than sizetype, |
836e9385 HPN |
19 | // otherwise types/vars with (e.g. for 32-bit sizetype) 0x20000000 |
20 | // bytes or larger can't be used. See http://gcc.gnu.org/PR54897 | |
76627edd | 21 | // { dg-do compile { target { ! { avr*-*-* cris*-*-* h8300*-*-* hppa*64*-*-* mcore*-*-* moxie*-*-* mmix-*-* } } } } |
fc99f780 LH |
22 | |
23 | #include <bitset> | |
24 | ||
25 | // libstdc++/45713 | |
56355dc9 | 26 | int test[sizeof(std::bitset<__SIZE_MAX__>) != 1 ? 1 : -1]; |