| // { 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 | |
| } |