Debian Codegraph @

libgomp/testsuite/libgomp.c++/target-exceptions-throw-3.C

raw
1 /* 'throw' in OpenMP 'target' region, dead code. */
2
3 /* { dg-require-effective-target exceptions }
4 { dg-additional-options -fexceptions } */
5 /* { dg-additional-options -DDEFAULT=defaultmap(to) }
6 ... to avoid wrong code for offloading execution; PR119692.
7 With this, the device code still isn't correct, but the defects are in dead code.
8 { dg-additional-options -fdump-tree-gimple } */
9 /* { dg-additional-options -fdump-tree-optimized-raw }
10 { dg-additional-options -foffload-options=-fdump-tree-optimized-raw } */
11
12 #include "../libgomp.oacc-c++/exceptions-throw-3.C"
13
14 /* { dg-final { scan-tree-dump-not {(?n)#pragma omp target .* defaultmap\(to\) map\(to:_ZTI11MyException \[len: [0-9]+\] \[runtime_implicit\]\)$} gimple { xfail *-*-* } } } */
15
16 /* { dg-final { scan-tree-dump-times {gimple_call <__cxa_allocate_exception, } 1 optimized } }
17 { dg-final { scan-tree-dump-times {gimple_call <__cxa_throw, } 1 optimized } }
18 { dg-final { scan-offload-tree-dump-times {gimple_call <__cxa_allocate_exception, } 1 optimized } }
19 { dg-final { scan-offload-tree-dump-times {gimple_call <__cxa_throw, } 1 optimized } } */