blob: 36512ae6ab24c9e89f0dc54dcb82ed36b308be03 [file] [log] [blame]
// { dg-do run { xfail sparc64-*-elf arm-*-pe } }
// { dg-require-effective-target c++14_down }
#include <exception>
#include <stdlib.h>
void my_unexpected() {
exit (0);
}
void foo() throw () { throw "Hi"; }
int main() {
std::set_unexpected (my_unexpected); // { dg-warning "deprecated" "" { target c++11 } }
foo();
return 1;
}