Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/xpcom/tests/gtest/   (Firefox Browser Version 153.0.1©)  Datei vom 27.6.2026 mit Größe 1 kB image not shown  

Quelle  TestSTLWrappers.cpp

  Sprache: C
 

// enabling exceptions. We know we don't enbale exceptions.

#pragma  warningdisable:)
#ifndef mozilla_algorithm_h
#  error "failed to wrap <algorithm>"
#endif

#include <vector>
#ifndef mozilla_vector_h
#  error "failed to wrap <vector>"
#endif

// 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
C=89 H=96 G=92

¤ Dauer der Verarbeitung: 0.11 Sekunden  (vorverarbeitet am  2026-08-25) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

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.