Added test comparing non-copyable values

This commit is contained in:
Phil Nash
2017-08-17 16:48:46 +01:00
parent aaedae60b4
commit b8f482b9aa
6 changed files with 8330 additions and 7 deletions

View File

@@ -435,3 +435,9 @@ TEST_CASE( "null deref", "[.][failing][!nonportable]" ) {
int *x = NULL;
*x = 1;
}
TEST_CASE( "non-copyable objects", "[.]" ) {
// Thanks to Agustin Bergé (@k-ballo on the cpplang Slack) for raising this
std::type_info const& ti = typeid(int);
CHECK( ti == typeid(int) );
}