mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-10 10:01:42 +00:00
Mark the dynamic-exception tests as unsupported under C++17, since it has no dynamic-exception specs. Also, remove a FIXME workaround from the config that allowed these tests to work under C++17. This addresses PR#31621.
llvm-svn: 292135
This commit is contained in:
parent
43a8b7bc8c
commit
b4a2a63373
@ -55,10 +55,6 @@ class Configuration(LibcxxConfiguration):
|
||||
if not self.get_lit_bool('enable_threads', True):
|
||||
self.cxx.compile_flags += ['-D_LIBCXXABI_HAS_NO_THREADS']
|
||||
self.config.available_features.add('libcxxabi-no-threads')
|
||||
# FIXME: Fix the unwind_* tests that test dynamic exception
|
||||
# specifications so they work in C++17 (or always test in C++14).
|
||||
# Suppressing this warning is a temporary workaround.
|
||||
self.cxx.addWarningFlagIfSupported('-Wno-dynamic-exception-spec')
|
||||
super(Configuration, self).configure_compile_flags()
|
||||
|
||||
def configure_compile_flags_header_includes(self):
|
||||
|
@ -8,6 +8,7 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
// UNSUPPORTED: libcxxabi-no-exceptions
|
||||
// REQUIRES-ANY: c++98, c++03, c++11, c++14
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
|
@ -8,6 +8,7 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
// UNSUPPORTED: libcxxabi-no-exceptions
|
||||
// REQUIRES-ANY: c++98, c++03, c++11, c++14
|
||||
|
||||
#include <exception>
|
||||
#include <stdlib.h>
|
||||
|
@ -8,6 +8,7 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
// UNSUPPORTED: libcxxabi-no-exceptions
|
||||
// REQUIRES-ANY: c++98, c++03, c++11, c++14
|
||||
|
||||
#include <exception>
|
||||
#include <stdlib.h>
|
||||
|
@ -8,6 +8,7 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
// UNSUPPORTED: libcxxabi-no-exceptions
|
||||
// REQUIRES-ANY: c++98, c++03, c++11, c++14
|
||||
|
||||
#include <exception>
|
||||
#include <stdlib.h>
|
||||
|
Loading…
Reference in New Issue
Block a user