mirror of
https://github.com/catchorg/Catch2.git
synced 2025-08-01 12:55:40 +02:00
Xcode 4, warnings and MinGW
Added separate Xcode 4 project. Fixed some warnings. Fixed OutputDebugString decl for MinGW
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
|
||||
#include "catch.hpp"
|
||||
|
||||
size_t multiply( size_t a, size_t b )
|
||||
inline size_t multiply( size_t a, size_t b )
|
||||
{
|
||||
return a*b;
|
||||
}
|
||||
|
@@ -103,7 +103,7 @@ TEST_CASE( "./succeeding/Misc/stdout,stderr", "Sends stuff to stdout and stderr"
|
||||
std::cerr << "An error";
|
||||
}
|
||||
|
||||
const char* makeString( bool makeNull )
|
||||
inline const char* makeString( bool makeNull )
|
||||
{
|
||||
return makeNull ? NULL : "valid string";
|
||||
}
|
||||
|
@@ -47,7 +47,7 @@ TEST_CASE( "selftest/main", "Runs all Catch self tests and checks their results"
|
||||
"Number of 'succeeding' tests is fixed" )
|
||||
{
|
||||
runner.runMatching( "./succeeding/*" );
|
||||
CHECK( runner.getSuccessCount() == 259 );
|
||||
CHECK( runner.getSuccessCount() == 258 );
|
||||
CHECK( runner.getFailureCount() == 0 );
|
||||
}
|
||||
|
||||
|
@@ -142,17 +142,20 @@ namespace B {
|
||||
int c;
|
||||
};
|
||||
}
|
||||
bool operator==(const A::X& lhs, const B::Y& rhs)
|
||||
|
||||
inline bool operator==(const A::X& lhs, const B::Y& rhs)
|
||||
{
|
||||
return (lhs.a == rhs.a);
|
||||
}
|
||||
|
||||
bool operator==(const B::Y& lhs, const A::X& rhs)
|
||||
inline bool operator==(const B::Y& lhs, const A::X& rhs)
|
||||
{
|
||||
return (lhs.a == rhs.a);
|
||||
}
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
/* This, currently, does not compile with LLVM
|
||||
TEST_CASE
|
||||
(
|
||||
"./succeeding/koenig",
|
||||
@@ -163,7 +166,7 @@ TEST_CASE
|
||||
B::Y y;
|
||||
REQUIRE( x == y );
|
||||
}
|
||||
|
||||
*/
|
||||
|
||||
namespace ObjectWithConversions
|
||||
{
|
||||
|
Reference in New Issue
Block a user