Home
last modified time | relevance | path

Searched full:catch (Results 1 – 25 of 11195) sorted by relevance

12345678910>>...448

/external/llvm-project/llvm/test/Transforms/SimplifyCFG/
Dwineh-unreachable.ll23 to label %exit unwind label %catch.pad
24 catch.pad:
25 %cs1 = catchswitch within none [label %catch.body] unwind label %unreachable.unwind
26 ; CHECK: catch.pad:
27 ; CHECK-NEXT: catchswitch within none [label %catch.body] unwind to caller
28 catch.body:
29 ; CHECK: catch.body:
33 %catch = catchpad within %cs1 []
35 catchret from %catch to label %unreachable
72 to label %exit unwind label %catch.pad
[all …]
/external/llvm/test/Transforms/SimplifyCFG/
Dwineh-unreachable.ll23 to label %exit unwind label %catch.pad
24 catch.pad:
25 %cs1 = catchswitch within none [label %catch.body] unwind label %unreachable.unwind
26 ; CHECK: catch.pad:
27 ; CHECK-NEXT: catchswitch within none [label %catch.body] unwind to caller
28 catch.body:
29 ; CHECK: catch.body:
33 %catch = catchpad within %cs1 []
35 catchret from %catch to label %unreachable
72 to label %exit unwind label %catch.pad
[all …]
Dempty-cleanuppad.ll52 ; } catch (...) {}
55 ; In this case, the outermost cleanup pad can be eliminated and the catch block
65 ; CHECK: cleanupret from %0 unwind label %catch.dispatch
66 ; CHECK: catch.dispatch:
67 ; CHECK: catchswitch within none [label %catch] unwind to caller
68 ; CHECK: catch:
85 cleanupret from %0 unwind label %catch.dispatch
87 catch.dispatch: ; preds = %ehcleanup
88 %cs1 = catchswitch within none [label %catch] unwind label %ehcleanup.1
90 catch: ; preds = %catch.dispatch
[all …]
/external/llvm-project/llvm/test/CodeGen/WebAssembly/
Dwasmehprepare.ll11 ; A single 'catch (int)' clause.
12 ; A wasm.catch() call, wasm.lsda() call, and personality call to generate a
19 ; } catch (int) {
26 to label %try.cont unwind label %catch.dispatch
28 catch.dispatch: ; preds = %entry
29 %0 = catchswitch within none [label %catch.start] unwind to caller
31 catch.start: ; preds = %catch.dispatch
37 br i1 %matches, label %catch, label %rethrow
38 ; CHECK: catch.start:
49 catch: ; preds = %catch.start
[all …]
Dcfg-stackify-eh.ll15 ; Simple test case with two catch clauses
21 ; } catch (int) {
22 ; } catch (double) {
29 ; CHECK: catch
47 to label %try.cont unwind label %catch.dispatch
49 catch.dispatch: ; preds = %entry
50 %0 = catchswitch within none [label %catch.start] unwind to caller
52 catch.start: ; preds = %catch.dispatch
58 br i1 %matches, label %catch2, label %catch.fallthrough
60 catch2: ; preds = %catch.start
[all …]
Dexception.ll19 ; Simple test with a try-catch
25 ; } catch (int) {
33 ; CHECK: catch $[[EXNREF:[0-9]+]]=
54 to label %try.cont unwind label %catch.dispatch
56 catch.dispatch: ; preds = %entry
57 %0 = catchswitch within none [label %catch.start] unwind to caller
59 catch.start: ; preds = %catch.dispatch
65 br i1 %matches, label %catch, label %rethrow
67 catch: ; preds = %catch.start
72 rethrow: ; preds = %catch.start
[all …]
Deh-lsda.ll9 ; Single catch (...) does not need an exception table.
13 ; } catch (...) {
20 to label %try.cont unwind label %catch.dispatch
22 catch.dispatch: ; preds = %entry
23 %0 = catchswitch within none [label %catch.start] unwind to caller
25 catch.start: ; preds = %catch.dispatch
33 try.cont: ; preds = %entry, %catch.start
41 ; } catch (int) {
42 ; } catch (float) {
43 ; } catch (double) {
[all …]
/external/llvm/test/CodeGen/X86/
Dfunclet-layout.ll15 to label %unreachable unwind label %catch.dispatch
17 catch.dispatch:
18 %cs1 = catchswitch within none [label %catch] unwind to caller
20 catch:
22 br label %catch.loop
24 catch.loop:
25 br i1 %B, label %catchret, label %catch.loop
44 ; The catch funclet contains %catch and %catchret
45 ; CHECK: # %catch{{$}}
55 to label %unreachable unwind label %catch.dispatch
[all …]
/external/llvm-project/llvm/test/CodeGen/X86/
Dfunclet-layout.ll17 to label %unreachable unwind label %catch.dispatch
19 catch.dispatch:
20 %cs1 = catchswitch within none [label %catch] unwind to caller
22 catch:
24 br label %catch.loop
26 catch.loop:
27 br i1 %B, label %catchret, label %catch.loop
47 ; The catch funclet contains %catch and %catchret
48 ; CHECK: # %catch{{$}}
58 to label %unreachable unwind label %catch.dispatch
[all …]
/external/llvm-project/libcxxabi/test/
Dincomplete_type.sh.cpp91 } catch (int IncompleteAtThrow::*) { in main()
93 } catch (int CompleteAtThrow::*) { in main()
95 } catch (int NeverDefined::*p) { in main()
98 catch(...) { assert(!"FAIL: Didn't catch NeverDefined::*" ); } in main()
104 } catch (CompleteAtThrow**) { in main()
106 } catch (int CompleteAtThrow::*) { in main()
108 } catch (IncompleteAtThrow**) { in main()
110 } catch (int IncompleteAtThrow::*p) { in main()
113 catch(...) { assert(!"FAIL: Didn't catch IncompleteAtThrow::*" ); } in main()
119 } catch (int IncompleteAtThrow::*) { in main()
[all …]
Dcatch_member_data_pointer_01.pass.cpp40 catch (md2) in test1()
44 catch (md1) in test1()
56 catch (md2) in test2()
59 catch (...) in test2()
69 catch (md1) in test2()
72 catch (...) in test2()
86 catch (md2) in test3()
90 catch (der2) in test3()
94 catch (der1) in test3()
98 catch (md1) in test3()
[all …]
/external/libcxxabi/test/
Dincomplete_type.sh.cpp91 } catch (int IncompleteAtThrow::*) { in main()
93 } catch (int CompleteAtThrow::*) { in main()
95 } catch (int NeverDefined::*p) { in main()
98 catch(...) { assert(!"FAIL: Didn't catch NeverDefined::*" ); } in main()
104 } catch (CompleteAtThrow**) { in main()
106 } catch (int CompleteAtThrow::*) { in main()
108 } catch (IncompleteAtThrow**) { in main()
110 } catch (int IncompleteAtThrow::*p) { in main()
113 catch(...) { assert(!"FAIL: Didn't catch IncompleteAtThrow::*" ); } in main()
119 } catch (int IncompleteAtThrow::*) { in main()
[all …]
Dcatch_member_data_pointer_01.pass.cpp41 catch (md2) in test1()
45 catch (md1) in test1()
57 catch (md2) in test2()
60 catch (...) in test2()
70 catch (md1) in test2()
73 catch (...) in test2()
87 catch (md2) in test3()
91 catch (der2) in test3()
95 catch (der1) in test3()
99 catch (md1) in test3()
[all …]
/external/llvm-project/llvm/test/Transforms/SimplifyCFG/X86/
Dempty-cleanuppad.ll52 ; } catch (...) {}
55 ; In this case, the outermost cleanup pad can be eliminated and the catch block
65 ; CHECK: cleanupret from %0 unwind label %catch.dispatch
66 ; CHECK: catch.dispatch:
67 ; CHECK: catchswitch within none [label %catch] unwind to caller
68 ; CHECK: catch:
85 cleanupret from %0 unwind label %catch.dispatch
87 catch.dispatch: ; preds = %ehcleanup
88 %cs1 = catchswitch within none [label %catch] unwind label %ehcleanup.1
90 catch: ; preds = %catch.dispatch
[all …]
/external/llvm-project/clang/test/SemaCXX/
Dexceptions.cpp12 } catch(int i) { // expected-note {{previous definition}} in trys()
15 } catch(float i) { in trys()
16 } catch(void v) { // expected-error {{cannot catch incomplete type 'void'}} in trys()
17 } catch(A a) { // expected-error {{cannot catch incomplete type 'A'}} in trys()
18 } catch(A *a) { // expected-error {{cannot catch pointer to incomplete type 'A'}} in trys()
19 } catch(A &a) { // expected-error {{cannot catch reference to incomplete type 'A'}} in trys()
20 } catch(Abstract) { // expected-error {{variable type 'Abstract' is an abstract class}} in trys()
21 } catch(...) { in trys()
30 } catch(...) { // expected-error {{catch-all handler must come last}} in trys()
31 } catch(int) { in trys()
[all …]
Dwarn-throw-out-noexcept-func.cpp154 } catch (...) { in bar_ShouldNotDiag()
160 } catch (int) { in f_ShouldNotDiag()
166 } catch (...) { in g_ShouldNotDiag()
173 } catch (const char *) { in h_ShouldDiag()
180 } catch (int) { in i_ShouldDiag()
187 } catch (int) { in j_ShouldDiag()
195 } catch (...) { in k_ShouldDiag()
204 } catch (int) { in loo_ShouldDiag()
224 } catch (S *s) { in l_ShouldDiag()
232 } catch (S s) { in m_ShouldNotDiag()
[all …]
/external/clang/test/SemaCXX/
Dexceptions.cpp11 } catch(int i) { // expected-note {{previous definition}} in trys()
14 } catch(float i) { in trys()
15 } catch(void v) { // expected-error {{cannot catch incomplete type 'void'}} in trys()
16 } catch(A a) { // expected-error {{cannot catch incomplete type 'A'}} in trys()
17 } catch(A *a) { // expected-error {{cannot catch pointer to incomplete type 'A'}} in trys()
18 } catch(A &a) { // expected-error {{cannot catch reference to incomplete type 'A'}} in trys()
19 } catch(Abstract) { // expected-error {{variable type 'Abstract' is an abstract class}} in trys()
20 } catch(...) { in trys()
25 } catch(...) { // expected-error {{catch-all handler must come last}} in trys()
26 } catch(int) { in trys()
[all …]
/external/llvm-project/clang-tools-extra/test/clang-tidy/checkers/
Dmisc-throw-by-value-catch-by-reference.cpp1 // RUN: %check_clang_tidy %s misc-throw-by-value-catch-by-reference %t -- -- -fcxx-exceptions
26 …ows a pointer; it should throw a non-pointer value instead [misc-throw-by-value-catch-by-reference] in testThrowFunc()
29 …expression should throw anonymous temporary values instead [misc-throw-by-value-catch-by-reference] in testThrowFunc()
30 …ows a pointer; it should throw a non-pointer value instead [misc-throw-by-value-catch-by-reference] in testThrowFunc()
38 …expression should throw anonymous temporary values instead [misc-throw-by-value-catch-by-reference] in testThrowFunc()
39 …ows a pointer; it should throw a non-pointer value instead [misc-throw-by-value-catch-by-reference] in testThrowFunc()
42 …expression should throw anonymous temporary values instead [misc-throw-by-value-catch-by-reference] in testThrowFunc()
47 …expression should throw anonymous temporary values instead [misc-throw-by-value-catch-by-reference] in testThrowFunc()
56 } catch (logic_error *e) { in catchByPointer()
57 …2: warning: catch handler catches a pointer value; should throw a non-pointer value and catch by r… in catchByPointer()
[all …]
/external/jimfs/jimfs/src/test/java/com/google/common/jimfs/
DJimfsFileSystemCloseTest.java84 } catch (FileSystemNotFoundException expected) { in testIsNotAvailableFromProvider()
102 } catch (IOException expected) { in testOpenStreamsClosed()
109 } catch (IOException expected) { in testOpenStreamsClosed()
134 } catch (ClosedChannelException expected) { in testOpenChannelsClosed()
140 } catch (ClosedChannelException expected) { in testOpenChannelsClosed()
146 } catch (ClosedChannelException expected) { in testOpenChannelsClosed()
162 } catch (ClosedDirectoryStreamException expected) { in testOpenDirectoryStreamsClosed()
180 } catch (ClosedWatchServiceException expected) { in testOpenWatchServicesClosed()
186 } catch (ClosedWatchServiceException expected) { in testOpenWatchServicesClosed()
202 } catch (ClosedWatchServiceException expected) { in testPathMethodsThrow()
[all …]
/external/catch2/docs/
Dconfiguration.md7 [Prefixing Catch macros](#prefixing-catch-macros)<br>
19 [Overriding Catch's debug break (`-b`)](#overriding-catchs-debug-break--b)<br>
21 Catch is designed to "just work" as much as possible. For most people the only configuration needed…
23 Nonetheless there are still some occasions where finer control is needed. For these occasions Catch
30Catch is header only it still, internally, maintains a distinction between interface headers and h…
36 Brings in various parts of Catch that are required for user defined Reporters and Listeners. This m…
40 ## Prefixing Catch macros
44Catch uses short macro names (e.g. ```TEST_CASE``` and ```REQUIRE```). Occasionally these may conf…
55 When sending output to the terminal, if it detects that it can, Catch will use colourised text. On …
61 Typically you should place the ```#define``` before #including "catch.hpp" in your main source file…
[all …]
/external/catch2/include/
Dcatch.hpp105 // If this config identifier is defined then all CATCH macros are prefixed with CATCH_
108 #define CATCH_REQUIRE( ... ) INTERNAL_CATCH_TEST( "CATCH_REQUIRE", Catch::ResultDisposition::Normal…
109 …ALSE( ... ) INTERNAL_CATCH_TEST( "CATCH_REQUIRE_FALSE", Catch::ResultDisposition::Normal | Catch::…
111 #define CATCH_REQUIRE_THROWS( ... ) INTERNAL_CATCH_THROWS( "CATCH_REQUIRE_THROWS", Catch::ResultDis…
112 …ype ) INTERNAL_CATCH_THROWS_AS( "CATCH_REQUIRE_THROWS_AS", exceptionType, Catch::ResultDisposition…
113 …matcher ) INTERNAL_CATCH_THROWS_STR_MATCHES( "CATCH_REQUIRE_THROWS_WITH", Catch::ResultDisposition…
115 …RNAL_CATCH_THROWS_MATCHES( "CATCH_REQUIRE_THROWS_MATCHES", exceptionType, Catch::ResultDisposition…
117 #define CATCH_REQUIRE_NOTHROW( ... ) INTERNAL_CATCH_NO_THROW( "CATCH_REQUIRE_NOTHROW", Catch::Resul…
119 #define CATCH_CHECK( ... ) INTERNAL_CATCH_TEST( "CATCH_CHECK", Catch::ResultDisposition::ContinueOn…
120 …E( ... ) INTERNAL_CATCH_TEST( "CATCH_CHECK_FALSE", Catch::ResultDisposition::ContinueOnFailure | C…
[all …]
/external/guava/android/guava-testlib/src/com/google/common/collect/testing/
DMapInterfaceTest.java141 } catch (UnsupportedOperationException e) { in makeEitherMap()
153 } catch (Exception e) { in supportsValuesHashCode()
271 } catch (UnsupportedOperationException e) { in testClear()
282 } catch (UnsupportedOperationException expected) { in testClear()
294 } catch (UnsupportedOperationException e) { in testContainsKey()
300 } catch (ClassCastException tolerated) { in testContainsKey()
308 } catch (NullPointerException optional) { in testContainsKey()
320 } catch (UnsupportedOperationException e) { in testContainsValue()
330 } catch (NullPointerException optional) { in testContainsValue()
341 } catch (UnsupportedOperationException e) { in testEntrySet()
[all …]
/external/guava/guava-testlib/src/com/google/common/collect/testing/
DMapInterfaceTest.java141 } catch (UnsupportedOperationException e) { in makeEitherMap()
153 } catch (Exception e) { in supportsValuesHashCode()
271 } catch (UnsupportedOperationException e) { in testClear()
282 } catch (UnsupportedOperationException expected) { in testClear()
294 } catch (UnsupportedOperationException e) { in testContainsKey()
300 } catch (ClassCastException tolerated) { in testContainsKey()
308 } catch (NullPointerException optional) { in testContainsKey()
320 } catch (UnsupportedOperationException e) { in testContainsValue()
330 } catch (NullPointerException optional) { in testContainsValue()
341 } catch (UnsupportedOperationException e) { in testEntrySet()
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/timescale/
DTimeScaleAPITest.java43 } catch (IllegalArgumentException iae) { in TestBigDecimalFromBigDecimal()
50 } catch (IllegalArgumentException iae) { in TestBigDecimalFromBigDecimal()
58 } catch (IllegalArgumentException iae) { in TestBigDecimalFromBigDecimal()
69 } catch (IllegalArgumentException iae) { in TestBigDecimalFromDouble()
76 } catch (IllegalArgumentException iae) { in TestBigDecimalFromDouble()
84 } catch (IllegalArgumentException iae) { in TestBigDecimalFromDouble()
95 } catch (IllegalArgumentException iae) { in TestBigDecimalFromLong()
102 } catch (IllegalArgumentException iae) { in TestBigDecimalFromLong()
110 } catch (IllegalArgumentException iae) { in TestBigDecimalFromLong()
123 } catch (IllegalArgumentException iae) { in TestFromLong()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/timescale/
DTimeScaleAPITest.java46 } catch (IllegalArgumentException iae) { in TestBigDecimalFromBigDecimal()
53 } catch (IllegalArgumentException iae) { in TestBigDecimalFromBigDecimal()
61 } catch (IllegalArgumentException iae) { in TestBigDecimalFromBigDecimal()
72 } catch (IllegalArgumentException iae) { in TestBigDecimalFromDouble()
79 } catch (IllegalArgumentException iae) { in TestBigDecimalFromDouble()
87 } catch (IllegalArgumentException iae) { in TestBigDecimalFromDouble()
98 } catch (IllegalArgumentException iae) { in TestBigDecimalFromLong()
105 } catch (IllegalArgumentException iae) { in TestBigDecimalFromLong()
113 } catch (IllegalArgumentException iae) { in TestBigDecimalFromLong()
126 } catch (IllegalArgumentException iae) { in TestFromLong()
[all …]

12345678910>>...448