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 d52637281fef99ed5f0bf296442950c71e242033..de647c4eb69d80431bf10095df26526ad6ef8ae5 100644 (file)
@@ -15,6 +15,7 @@
 #include <cxxabi.h>
 #include <stdio.h>
 #include <new>
+#include <exception>
 #include <stdlib.h>
 #include <setjmp.h>