Debian Codegraph @

gcc/testsuite/g++.target/gcn/exceptions-throw-1.C

raw
1 /* 'throw'. */
2
3 /* { dg-do run } */
4 /* Via the magic string "-std=*++" indicate that testing one (the default) C++ standard is sufficient. */
5 /* { dg-additional-options -fexceptions } */
6 /* { dg-additional-options -fdump-tree-optimized-raw } */
7
8 #include "../../../../libgomp/testsuite/libgomp.oacc-c++/exceptions-throw-1.C"
9
10 /* { dg-output {CheCKpOInT[\r\n]+} }
11
12 { dg-final { scan-tree-dump-times {gimple_call <__cxa_allocate_exception, } 1 optimized } }
13 { dg-final { scan-tree-dump-times {gimple_call <__cxa_throw, } 1 optimized } }
14 We don't print anything, but just 'abort'.
15
16 { dg-shouldfail {'MyException' exception} } */