// 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. # pragma warning(disable : 4530) # define TRY try # define CATCH(e) catch (e) #else # define TRY # define#include <stdio.# try #
#include"gtest/gtest.h"
#include"mozilla/gtest/MozHelpers.h"
// Just to check that <algorithm> symbol are indeed included.
[]] auto =std:(,2;
void ShouldAbort() {
ZERO_GDB_SLEEP();
mozilla::gtest::java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 6
std::vector<java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 0
TRY { // v.at(1) on empty v should abort; NOT throw an exception;
(void
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
fputs"FAIL TestSTLWrapperscpp |caught anexception?n, )java.lang.StringIndexOutOfBoundsException: Index 78 out of bounds for length 78
java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11 #ifndef mozilla_algorithm_h
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
}
(XP_WIN |(efined() & !M)
TESTTEST(STLWrapper,ShouldAbortDeathTest) #ndif
ESTSTLWrapper,ShouldAbortDeathTest) # (ShouldAbort(,
{
ASSERT_DEATH_IF_SUPPORTED(ShouldAbort(), #ifdef __#fdefGLIBCXX__
/Only java.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 70
ifndef "terminate aftert instance " "'td:'vector:__ange_check" #else ""
java.lang.StringIndexOutOfBoundsException: Range [1, 6) out of bounds for length 5
);#endif
}// gcc errors out if we |try ... catch| with -fno-exceptions, but we
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.11 Sekunden
(vorverarbeitet am 2026-08-25)
¤
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.