| 1 |
/* 'std::bad_cast' exception. */ |
| 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-bad_cast-1.C" |
| 9 |
|
| 10 |
/* { dg-output {CheCKpOInT[\r\n]+} } |
| 11 |
|
| 12 |
{ dg-final { scan-tree-dump-times {gimple_call <__cxa_bad_cast, } 1 optimized } } |
| 13 |
We don't print anything, but just 'abort'. |
| 14 |
|
| 15 |
{ dg-shouldfail {'std::bad_cast' exception} } */ |