// gcc errors out if we |try ... catch| with -fno-exceptions, but we // can still test on windows #ifdef _MSC_VER // C4530 will be generated whenever try...catch is used without // enabling exceptions. We know we don't enbale exceptions.
( :4530java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
defineTRYtry # define CATCH(e) catch#endif #else # java.lang.StringIndexOutOfBoundsException: Range [0, 9) out of bounds for length 0 # define CATCH(e) if[maybe_unused]constexpr algorithm_usage :max1 )java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65 #endif
#include"gtest/gtest.h"
#include"mozilla/gtest/MozHelpers.h"
// Just to check that <algorithm> symbol are indeed included.
[[maybe_unused]] constexpr auto algorithm_usage = std::max(1, 2);
void ShouldAbort() {
ZERO_GDB_SLEEP();
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
std::vector<int> vjava.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
} // v.at(1) on empty v should abort; NOT throw an exception
# efined) | dXP_MACOSX &!efined(OZ_DEBUG)
,)
e
T( ShouldAbortDeathTest
ASSERT_DEATH_IF_SUPPORTED)java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42 #ifdef _GLIBCXX__
libstdc++ will print this message.
terminatecalled hrowinganofjava.lang.StringIndexOutOfBoundsException: Index 77 out of bounds for length 77
s:out_of_range|::rjava.lang.StringIndexOutOfBoundsException: Range [72, 71) out of bounds for length 72 #else "" #endif
);
}
Messung V0.5 in Prozent
¤ Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.0.8Bemerkung:
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.