Debian Codegraph @

libgomp/testsuite/libgomp.c++/target-exceptions-throw-2-O0.C

raw
1 /* 'throw' in OpenMP 'target' region, caught. */
2
3 /* { dg-additional-options -O0 } */
4 /* { dg-require-effective-target exceptions }
5 { dg-additional-options -fexceptions } */
6 /* { dg-additional-options -fdump-tree-optimized-raw }
7 { dg-additional-options -foffload-options=-fdump-tree-optimized-raw } */
8 /* { dg-bogus {undefined symbol: typeinfo name for MyException} PR119806 { target offload_target_amdgcn xfail *-*-* } 0 }
9 { dg-excess-errors {'mkoffload' failure etc.} { xfail offload_target_amdgcn } } */
10 /* { dg-bogus {Initial value type mismatch} PR119806 { target offload_target_nvptx xfail *-*-* } 0 }
11 { dg-excess-errors {'mkoffload' failure etc.} { xfail offload_target_nvptx } } */
12
13 #include "target-exceptions-throw-2.C"
14
15 /* { dg-output {CheCKpOInT[\r\n]+} }
16
17 { dg-final { scan-tree-dump-times {gimple_call <__cxa_allocate_exception, } 1 optimized } }
18 { dg-final { scan-tree-dump-times {gimple_call <__cxa_throw, } 1 optimized } }
19 { dg-final { scan-offload-tree-dump-times {gimple_call <__cxa_allocate_exception, } 1 optimized } }
20 { dg-final { scan-offload-tree-dump-times {gimple_call <__cxa_throw, } 1 optimized } }
21 { dg-output {.*caught 'MyException'[\r\n]+} { target { ! offload_device } } }
22 For GCN, nvptx offload execution, we don't print anything, but just 'abort'.
23
24 For GCN, nvptx offload execution, there is no 'catch'ing; any exception is fatal.
25 { dg-shouldfail {'MyException' exception} { offload_device } } */