Debian Codegraph @

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

raw
1 /* 'std::bad_cast' exception 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-bad_cast-3.C"
13
14 /* { dg-final { scan-tree-dump-not {(?n)#pragma omp target .* defaultmap\(to\) map\(to:_ZTI2C2 \[len: [0-9]+\] \[runtime_implicit\]\) map\(to:_ZTI2C1 \[len: [0-9]+\] \[runtime_implicit\]\) map\(to:_ZTV2C1 \[len: [0-9]+\] \[runtime_implicit\]\)$} gimple { xfail *-*-* } } } */
15
16 /* { dg-final { scan-tree-dump-times {gimple_call <__cxa_bad_cast, } 1 optimized } }
17 { dg-final { scan-offload-tree-dump-times {gimple_call <__cxa_bad_cast, } 1 optimized } } */