diff options
Diffstat (limited to 'libstdc++-v3/testsuite/testsuite_hooks.h')
-rw-r--r-- | libstdc++-v3/testsuite/testsuite_hooks.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/libstdc++-v3/testsuite/testsuite_hooks.h b/libstdc++-v3/testsuite/testsuite_hooks.h index 90104d36523..fc05186d400 100644 --- a/libstdc++-v3/testsuite/testsuite_hooks.h +++ b/libstdc++-v3/testsuite/testsuite_hooks.h @@ -160,6 +160,24 @@ namespace __gnu_test void run_tests_wrapped_env(const char*, const char*, const func_callback&); + + // For containers (23.1/3). + struct NonDefaultConstructible + { + NonDefaultConstructible(int) { } + }; + + inline bool + operator==(const NonDefaultConstructible& lhs, + const NonDefaultConstructible& rhs) + { return false; } + + inline bool + operator<(const NonDefaultConstructible& lhs, + const NonDefaultConstructible& rhs) + { return false; } + + // Counting. struct counter { |