Debian Codegraph @

gcc/testsuite/g++.target/nvptx/exceptions-throw-2_-mfake-exceptions.C

raw
1 /* 'throw', caught, '-mfake-exceptions'. */
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 -mfake-exceptions }
7 { dg-bogus {sorry, unimplemented: exception handling not supported} {} { target *-*-* } 0 } */
8 /* { dg-additional-options -fdump-tree-optimized-raw } */
9
10 #include "exceptions-throw-2.C"
11
12 /* { dg-output {CheCKpOInT[\r\n]+} }
13
14 { dg-final { scan-tree-dump-times {gimple_call <__cxa_allocate_exception, } 1 optimized } }
15 { dg-final { scan-tree-dump-times {gimple_call <__cxa_throw, } 1 optimized } }
16 We don't print anything, but just 'abort'.
17
18 There is no 'catch'ing; any exception is fatal.
19 { dg-shouldfail {'MyException' exception} } */