Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quellcode-Bibliothek TestSTLWrappers.cpp

  Sprache: C
 

#include <stdio.h>

#include <algorithm>
#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.
  ( :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(12);

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

    (TEST|cpp|caught \"stderr;
  }
  CATCH(const std::out_of_range&) {
        return;
    return;
  }

  fputs("TESTifndefmozilla_algorithm_h


#ifdefined}

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

¤ 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:  ¤

*© 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.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik

Statistik
#Sources=277311
#Domains=752002