Home
last modified time | relevance | path

Searched refs:exceptions (Results 1 – 25 of 430) sorted by relevance

12345678910>>...18

/llvm-project/clang/test/CodeGenObjCXX/
H A Dpersonality.mm1 // RUN: %clang_cc1 -triple i686-unknown-linux-gnu -fexceptions -fobjc-exceptions -fcxx-exceptions -…
2 …6-unknown-linux-gnu -fexceptions -exception-model=dwarf -fobjc-exceptions -fcxx-exceptions -fobjc-…
3 …686-unknown-linux-gnu -fexceptions -exception-model=seh -fobjc-exceptions -fcxx-exceptions -fobjc-…
4 …86-unknown-linux-gnu -fexceptions -exception-model=sjlj -fobjc-exceptions -fcxx-exceptions -fobjc-…
5 // RUN: %clang_cc1 -triple i686-unknown-linux-gnu -fexceptions -fobjc-exceptions -fcxx-exceptions -…
6 …6-unknown-linux-gnu -fexceptions -exception-model=dwarf -fobjc-exceptions -fcxx-exceptions -fobjc-…
7 …686-unknown-linux-gnu -fexceptions -exception-model=seh -fobjc-exceptions -fcxx-exceptions -fobjc-…
8 …86-unknown-linux-gnu -fexceptions -exception-model=sjlj -fobjc-exceptions -fcxx-exceptions -fobjc-…
9 // RUN: %clang_cc1 -triple i686-unknown-linux-gnu -fexceptions -fobjc-exceptions -fcxx-exceptions -…
10 …6-unknown-linux-gnu -fexceptions -exception-model=dwarf -fobjc-exceptions -fcxx-exceptions -fobjc-…
[all …]
H A Dobjfw-exceptions.mm1 … x86_64-pc-linux-gnu -emit-llvm -fexceptions -fobjc-exceptions -fobjc-runtime=objfw -fcxx-exceptio…
2 … x86_64-pc-linux-gnu -emit-llvm -fexceptions -fobjc-exceptions -fobjc-runtime=objfw -fcxx-exceptio…
/llvm-project/compiler-rt/test/profile/
H A Dinstrprof-gcov-exceptions.test4 # Test with exceptions disabled.
5 RUN: %clangxx --coverage -o %t %S/Inputs/instrprof-gcov-exceptions.cpp -fno-exceptions -dumpdir ./
6 RUN: test -f instrprof-gcov-exceptions.gcno
8 RUN: rm -f instrprof-gcov-exceptions.gcda
10 RUN: llvm-cov gcov instrprof-gcov-exceptions.gcda
11 … --strict-whitespace --input-file instrprof-gcov-exceptions.cpp.gcov %S/Inputs/instrprof-gcov-exce…
13 # Test with exceptions enabled, the result in terms of line counts should be the same.
14 RUN: %clangxx --coverage -o %t %S/Inputs/instrprof-gcov-exceptions.cpp -dumpdir ./
15 RUN: test -f instrprof-gcov-exceptions.gcno
17 RUN: rm -f instrprof-gcov-exceptions.gcda
[all …]
/llvm-project/libcxx/test/std/input.output/iostreams.base/ios/iostate.flags/
H A Dexceptions_iostate.pass.cpp27 assert(ios.exceptions() == std::ios::goodbit); in main()
28 ios.exceptions(std::ios::eofbit); in main()
29 assert(ios.exceptions() == std::ios::eofbit); in main()
33 ios.exceptions(std::ios::badbit); in main()
39 assert(ios.exceptions() == std::ios::badbit); in main()
45 assert(ios.exceptions() == std::ios::goodbit); in main()
46 ios.exceptions(std::ios::eofbit); in main()
47 assert(ios.exceptions() == std::ios::eofbit); in main()
48 ios.exceptions(std::ios::badbit); in main()
49 assert(ios.exceptions() == std::ios::badbit); in main()
/llvm-project/clang/test/CodeGenObjC/
H A Dpersonality.m1 // RUN: %clang_cc1 -triple i686-unknown-linux-gnu -fexceptions -fobjc-exceptions -fobjc-runtime=mac…
2 // RUN: %clang_cc1 -triple i686-unknown-linux-gnu -fexceptions -fobjc-exceptions -fobjc-runtime=ios…
3 // RUN: %clang_cc1 -triple i686-unknown-linux-gnu -fexceptions -fobjc-exceptions -fobjc-runtime=mac…
4 // RUN: %clang_cc1 -triple i686-unknown-linux-gnu -fexceptions -fobjc-exceptions -fobjc-runtime=wat…
5 // RUN: %clang_cc1 -triple i686-unknown-linux-gnu -fexceptions -fobjc-exceptions -fobjc-runtime=gnu…
6 // RUN: %clang_cc1 -triple i686-unknown-linux-gnu -fexceptions -fobjc-exceptions -fobjc-runtime=gnu…
7 // RUN: %clang_cc1 -triple i686-unknown-linux-gnu -fexceptions -fobjc-exceptions -fobjc-runtime=gcc…
8 …triple i686-unknown-linux-gnu -fexceptions -exception-model=seh -fobjc-exceptions -fobjc-runtime=g…
9 …riple i686-unknown-linux-gnu -fexceptions -exception-model=sjlj -fobjc-exceptions -fobjc-runtime=g…
10 // RUN: %clang_cc1 -triple i686-unknown-linux-gnu -fexceptions -fobjc-exceptions -fobjc-runtime=obj…
[all …]
H A Dexceptions-personality.m1 …6_64-w64-windows-gnu -emit-llvm -fobjc-runtime=gnustep-2.0 -fexceptions -fobjc-exceptions -o %t %s
4 …riple x86_64-w64-windows-gnu -emit-llvm -fobjc-runtime=gcc -fexceptions -fobjc-exceptions -o %t %s
7 …_64-w64-windows-msvc -emit-llvm -fobjc-runtime=gnustep-2.0 -fexceptions -fobjc-exceptions -o %t %s
10 … x86_64-pc-linux-gnu -emit-llvm -fobjc-runtime=gnustep-2.0 -fexceptions -fobjc-exceptions -o %t %s
13 … -triple x86_64-pc-linux-gnu -emit-llvm -fobjc-runtime=gcc -fexceptions -fobjc-exceptions -o %t %s
H A Dobjc-alloc-init.m1 // RUN: %clang_cc1 %s -fobjc-exceptions -fexceptions -fobjc-runtime=macosx-10.14.4 -emit-llvm -O0 -…
2 // RUN: %clang_cc1 %s -fobjc-exceptions -fexceptions -fobjc-runtime=macosx-10.14.3 -emit-llvm -O0 -…
3 // RUN: %clang_cc1 %s -fobjc-exceptions -fexceptions -fobjc-runtime=ios-12.2 -emit-llvm -O0 -o - | …
4 // RUN: %clang_cc1 %s -fobjc-exceptions -fexceptions -fobjc-runtime=ios-12.1 -emit-llvm -O0 -o - | …
/llvm-project/flang/unittests/Evaluate/
H A Dfp-testing.cpp77 int exceptions = fetestexcept(FE_ALL_EXCEPT); in CurrentFlags() local
79 if (exceptions & FE_INVALID) { in CurrentFlags()
82 if (exceptions & FE_DIVBYZERO) { in CurrentFlags()
85 if (exceptions & FE_OVERFLOW) { in CurrentFlags()
88 if (exceptions & FE_UNDERFLOW) { in CurrentFlags()
91 if (exceptions & FE_INEXACT) { in CurrentFlags()
/llvm-project/clang/test/PCH/
H A Dobjc_stmts.m2 …_cc1 -triple x86_64-apple-macosx10.10 -include %S/objc_stmts.h -emit-llvm -fobjc-exceptions -o - %s
3 …le x86_64-apple-macosx10.10 -include %S/objc_stmts.h -ast-print -fobjc-exceptions -o - %s | FileCh…
6 // RUN: %clang_cc1 -triple x86_64-apple-macosx10.10 -x objective-c -emit-pch -fobjc-exceptions -o %…
7 // RUN: %clang_cc1 -triple x86_64-apple-macosx10.10 -include-pch %t -emit-llvm -fobjc-exceptions -o…
8 // RUN: %clang_cc1 -triple x86_64-apple-macosx10.10 -include-pch %t -ast-print -fobjc-exceptions -o…
/llvm-project/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.formatted.print/
H A Dprint.pass.cpp51 // After P2216 most exceptions thrown by std::format become ill-formed.
54 // The exceptions are tested by other functions that don't use the basic-format-string as fmt argument.
73 os_tied.exceptions(std::stringstream::failbit | std::stringstream::badbit | std::stringstream::eofbit); in test_sentry_failure()
77 os.exceptions(std::stringstream::failbit | std::stringstream::badbit | std::stringstream::eofbit); in test_sentry_failure()
83 os.exceptions(std::stringstream::goodbit); in test_sentry_failure()
90 // regard to the value of os.exceptions() and without turning on
102 sstr.exceptions(std::stringstream::goodbit); in test_format_exception()
107 sstr.exceptions(std::stringstream::failbit | std::stringstream::badbit | std::stringstream::eofbit); in test_format_exception()
121 os.exceptions(std::stringstream::failbit | std::stringstream::badbit | std::stringstream::eofbit); in test_write_failure()
130 os.exceptions(st in test_write_failure()
[all...]
H A Dvprint_unicode.pass.cpp83 os_tied.exceptions(std::stringstream::failbit | std::stringstream::badbit | std::stringstream::eofbit); in test_sentry_failure()
87 os.exceptions(std::stringstream::failbit | std::stringstream::badbit | std::stringstream::eofbit); in test_sentry_failure()
95 os.exceptions(std::stringstream::goodbit); in test_sentry_failure()
103 // regard to the value of os.exceptions() and without turning on
116 sstr.exceptions(std::stringstream::goodbit); in test_format_exception()
121 sstr.exceptions(std::stringstream::failbit | std::stringstream::badbit | std::stringstream::eofbit); in test_format_exception()
135 os.exceptions(std::stringstream::failbit | std::stringstream::badbit | std::stringstream::eofbit); in test_write_failure()
146 os.exceptions(std::stringstream::goodbit); in test_write_failure()
H A Dvprint_nonunicode.pass.cpp83 os_tied.exceptions(std::stringstream::failbit | std::stringstream::badbit | std::stringstream::eofbit); in test_sentry_failure()
87 os.exceptions(std::stringstream::failbit | std::stringstream::badbit | std::stringstream::eofbit); in test_sentry_failure()
95 os.exceptions(std::stringstream::goodbit); in test_sentry_failure()
103 // regard to the value of os.exceptions() and without turning on
116 sstr.exceptions(std::stringstream::goodbit); in test_format_exception()
121 sstr.exceptions(std::stringstream::failbit | std::stringstream::badbit | std::stringstream::eofbit); in test_format_exception()
136 os.exceptions(std::stringstream::failbit | std::stringstream::badbit | std::stringstream::eofbit); in test_write_failure()
146 os.exceptions(std::stringstream::goodbit); in test_write_failure()
/llvm-project/llvm/test/CodeGen/WebAssembly/
H A Deh-option-errors.ll3 ; RUN: not --crash llc < %s -enable-emscripten-cxx-exceptions -wasm-enable-eh 2>&1 | FileCheck %s --check-prefix=EM_EH_W_WASM_EH
4 ; EM_EH_W_WASM_EH: LLVM ERROR: -enable-emscripten-cxx-exceptions not allowed with -wasm-enable-eh
9 ; RUN: not --crash llc < %s -enable-emscripten-cxx-exceptions -wasm-enable-sjlj 2>&1 | FileCheck %s --check-prefix=EM_EH_W_WASM_SJLJ
10 ; EM_EH_W_WASM_SJLJ: LLVM ERROR: -enable-emscripten-cxx-exceptions not allowed with -wasm-enable-sjlj
15 ; RUN: not --crash llc < %s -enable-emscripten-cxx-exceptions -exception-model=wasm 2>&1 | FileCheck %s --check-prefix=EM_EH_W_MODEL_WASM
16 ; EM_EH_W_MODEL_WASM: LLVM ERROR: -exception-model=wasm not allowed with -enable-emscripten-cxx-exceptions
/llvm-project/flang/lib/Evaluate/
H A Dhost.cpp119 int exceptions{fetestexcept(FE_ALL_EXCEPT)}; in CheckAndRestoreFloatingPointEnvironment() local
120 if (exceptions & FE_INVALID) { in CheckAndRestoreFloatingPointEnvironment()
123 if (exceptions & FE_DIVBYZERO) { in CheckAndRestoreFloatingPointEnvironment()
126 if (exceptions & FE_OVERFLOW) { in CheckAndRestoreFloatingPointEnvironment()
129 if (exceptions & FE_UNDERFLOW) { in CheckAndRestoreFloatingPointEnvironment()
132 if (exceptions & FE_INEXACT) { in CheckAndRestoreFloatingPointEnvironment()
/llvm-project/libcxx/test/std/input.output/iostream.format/input.streams/istream.formatted/istream_extractors/
H A Dstreambuf.pass.cpp79 is.exceptions(std::istream::eofbit); in main()
96 is.exceptions(std::istream::eofbit); in main()
114 is.exceptions(std::istream::failbit); in main()
131 is.exceptions(std::istream::failbit); in main()
148 is.exceptions(std::istream::failbit); in main()
164 is.exceptions(std::istream::failbit); in main()
/llvm-project/clang/test/Analysis/
H A Dexceptions.mm1 // RUN: %clang_analyze_cc1 -fexceptions -fobjc-exceptions -fcxx-exceptions -analyzer-checker=core,u…
18 void *mem = malloc(4); // no-warning (ObjC exceptions are usually fatal)
32 // FIXME: this should be reported as a leak, because C++ exceptions are
/llvm-project/clang/test/Preprocessor/
H A Dpredefined-exceptions.m1 // RUN: %clang_cc1 -x objective-c -fobjc-exceptions -fexceptions -E -dM %s | FileCheck -check-prefi…
5 // RUN: %clang_cc1 -x objective-c++ -fobjc-exceptions -fexceptions -fcxx-exceptions -E -dM %s | Fil…
9 // RUN: %clang_cc1 -x objective-c++ -fexceptions -fcxx-exceptions -E -dM %s | FileCheck -check-pref…
/llvm-project/libcxx/test/std/input.output/iostream.format/input.streams/istream.unformatted/
H A Dsync.pass.cpp119 is.exceptions(std::ios_base::failbit | std::ios_base::eofbit); in main()
139 is.exceptions(std::ios_base::failbit | std::ios_base::eofbit); in main()
150 is.exceptions(std::ios_base::badbit); in main()
165 is.exceptions(std::ios_base::badbit); in main()
181 is.exceptions(std::ios_base::badbit); in main()
196 is.exceptions(std::ios_base::badbit); in main()
/llvm-project/llvm/test/Transforms/InstCombine/
H A Dconstrained.ll6 ; If operation does not raise exceptions, it may be removed even in strict mode.
17 ; If operation raises exceptions, it cannot be removed in strict mode.
29 ; If operation raises exceptions, it can be removed in non-strict mode.
40 ; If operation raises exceptions, it can be removed in non-strict mode even if rounding mode is dyn…
51 ; If operation raises exceptions, it can be removed in "maytrap" mode.
64 ; If operation does not raise exceptions, it may be folded even in strict mode.
75 ; If operation raises exceptions, it cannot be folded in strict mode.
87 ; If operation raises exceptions, it can be folded in non-strict mode.
/llvm-project/clang/test/Parser/
H A Dopencl-cxx-keywords.cl2 …1 %s -triple spir-unknown-unknown -cl-std=clc++ -verify -fsyntax-only -fexceptions -fcxx-exceptions
7 // Test that exceptions are disabled despite passing -fcxx-exceptions.
11 // expected-error@-1 {{cannot use 'try' with exceptions disabled}}
13 // expected-error@-1 {{cannot use 'throw' with exceptions disabled}}
/llvm-project/clang/test/Coverage/
H A Dast-printing.m1 // RUN: %clang_cc1 -triple x86_64-apple-macosx10.10 -fsyntax-only -fobjc-exceptions %s
2 // RUN: %clang_cc1 -triple x86_64-apple-macosx10.10 -ast-print -fobjc-exceptions %s
3 // RUN: %clang_cc1 -triple x86_64-apple-macosx10.10 -ast-dump -fobjc-exceptions %s
/llvm-project/llvm/docs/HistoricalNotes/
H A D2001-09-18-OptimizeExceptions.txt7 In C++ programs, exceptions suck, and here's why:
13 exceptions, so this code is dead [with all the bad effects of dead
25 6. Most large C++ programs throw few exceptions. Most well designed
26 programs only throw exceptions in specific planned portions of the
29 Given our _planned_ model of handling exceptions, all of this would be
50 exceptions, so there numbers are pretty worthless... also our results
/llvm-project/compiler-rt/test/profile/Inputs/
H A Dinstrprof-gcov-exceptions.cpp.gcov1 // CHECK: -: 0:Source:{{.*}}Inputs{{[/\\]}}instrprof-gcov-exceptions.cpp
2 // CHECK-NEXT: -: 0:Graph:instrprof-gcov-exceptions.gcno
3 // CHECK-NEXT: -: 0:Data:instrprof-gcov-exceptions.gcda
/llvm-project/libcxx/test/std/input.output/iostream.format/input.streams/iostreamclass/iostream.assign/
H A Dmove_assign.pass.cpp54 assert(is1.exceptions() == is1.goodbit); in main()
62 assert(is2.exceptions() == is2.goodbit); in main()
78 assert(is1.exceptions() == is1.goodbit); in main()
86 assert(is2.exceptions() == is2.goodbit); in main()
/llvm-project/libcxx/test/std/input.output/iostream.format/input.streams/istream/istream.assign/
H A Dmove_assign.pass.cpp54 assert(is1.exceptions() == is1.goodbit); in main()
62 assert(is2.exceptions() == is2.goodbit); in main()
78 assert(is1.exceptions() == is1.goodbit); in main()
86 assert(is2.exceptions() == is2.goodbit); in main()

12345678910>>...18