blob: 22991ffac91cf7fa4eeeec56a66d24330fe7642f [file] [log] [blame]
// { dg-do run { xfail *-*-* } }
// { dg-options "-D_GLIBCXX_ASSERTIONS" }
#include <bitset>
#include <testsuite_hooks.h>
// Check bitset<>::op[] hardening, non-const.
int main()
{
std::bitset<13> bs(0x1555ull);
bs[12]; // OK
bs[13]; // aborts, 13 > 12, non-const
}