testsuite: Add missing <exception> header to testcase
authorJonathan Wakely <jwakely@redhat.com>
Wed, 2 Sep 2020 17:37:17 +0000 (18:37 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Wed, 2 Sep 2020 17:41:20 +0000 (18:41 +0100)
This test no longer compiles because <new> stopped including
<exception>, so std::set_terminate is not defined.

gcc/testsuite/ChangeLog:

* g++.old-deja/g++.abi/cxa_vec.C: Include <exception> for
std::set_terminate.

gcc/testsuite/g++.old-deja/g++.abi/cxa_vec.C

index d526372..de647c4 100644 (file)
@@ -15,6 +15,7 @@
 #include <cxxabi.h>
 #include <stdio.h>
 #include <new>
+#include <exception>
 #include <stdlib.h>
 #include <setjmp.h>