diff options
Diffstat (limited to 'libstdc++-v3/testsuite/23_containers/bitset/test')
-rw-r--r-- | libstdc++-v3/testsuite/23_containers/bitset/test/1.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libstdc++-v3/testsuite/23_containers/bitset/test/1.cc b/libstdc++-v3/testsuite/23_containers/bitset/test/1.cc index 40f4f42d8ea..6e945d69768 100644 --- a/libstdc++-v3/testsuite/23_containers/bitset/test/1.cc +++ b/libstdc++-v3/testsuite/23_containers/bitset/test/1.cc @@ -28,13 +28,13 @@ void test01(void) { - bool test = true; + bool test __attribute__((unused)) = true; const size_t n1 = 5; // the other 22 member functions should be in here too... try { std::bitset<n1> five_bits; - bool unused = five_bits.test(n1); // should throw + bool unused __attribute__((unused)) = five_bits.test(n1); // should throw VERIFY( false ); } catch(std::out_of_range& fail) { |