diff options
Diffstat (limited to 'libstdc++-v3/testsuite/testsuite_hooks.h')
-rw-r--r-- | libstdc++-v3/testsuite/testsuite_hooks.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/libstdc++-v3/testsuite/testsuite_hooks.h b/libstdc++-v3/testsuite/testsuite_hooks.h index 1919ab8a114..4b526e9b19f 100644 --- a/libstdc++-v3/testsuite/testsuite_hooks.h +++ b/libstdc++-v3/testsuite/testsuite_hooks.h @@ -103,6 +103,23 @@ namespace __gnu_test void verify_demangle(const char* mangled, const char* wanted); + // 17.3.2.1.2 - Bitmask types [lib.bitmask.types] + // bitmask_operators + template<typename bitmask_type> + void + bitmask_operators() + { + bitmask_type a; + bitmask_type b; + a | b; + a & b; + a ^ b; + ~b; + a |= b; // set + a &= ~b; // clear + a ^= b; + } + // Simple callback structure for variable numbers of tests (all with // same signature). Assume all unit tests are of the signature // void test01(); |