mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-10-08 11:44:05 +00:00
[pstl] Workaround more errors in the test suite
This commit is contained in:
parent
6c92215e07
commit
c4823cc5db
@ -24,11 +24,7 @@
|
|||||||
|
|
||||||
// Check the user-defined macro for warnings
|
// Check the user-defined macro for warnings
|
||||||
#if defined(PSTL_USAGE_WARNINGS)
|
#if defined(PSTL_USAGE_WARNINGS)
|
||||||
# undef _PSTL_USAGE_WARNINGS
|
# define _PSTL_USAGE_WARNINGS
|
||||||
# define _PSTL_USAGE_WARNINGS PSTL_USAGE_WARNINGS
|
|
||||||
// Check the internal macro for warnings
|
|
||||||
#elif !defined(_PSTL_USAGE_WARNINGS)
|
|
||||||
# define _PSTL_USAGE_WARNINGS 0
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(_PSTL_ASSERT)
|
#if !defined(_PSTL_ASSERT)
|
||||||
|
@ -24,6 +24,7 @@ struct copy_int
|
|||||||
int32_t value;
|
int32_t value;
|
||||||
int32_t copied_times = 0;
|
int32_t copied_times = 0;
|
||||||
constexpr explicit copy_int(int32_t val = 0) : value(val) {}
|
constexpr explicit copy_int(int32_t val = 0) : value(val) {}
|
||||||
|
constexpr copy_int(copy_int const& other) : value(other.value), copied_times(other.copied_times) { }
|
||||||
|
|
||||||
constexpr copy_int&
|
constexpr copy_int&
|
||||||
operator=(const copy_int& other)
|
operator=(const copy_int& other)
|
||||||
|
@ -37,7 +37,7 @@ class MyClass
|
|||||||
int32_t my_field;
|
int32_t my_field;
|
||||||
MyClass() { my_field = 0; }
|
MyClass() { my_field = 0; }
|
||||||
MyClass(int32_t in) { my_field = in; }
|
MyClass(int32_t in) { my_field = in; }
|
||||||
MyClass(const MyClass& in) { my_field = in.my_field; }
|
MyClass(const MyClass& in) = default;
|
||||||
|
|
||||||
friend MyClass
|
friend MyClass
|
||||||
operator+(const MyClass& x, const MyClass& y)
|
operator+(const MyClass& x, const MyClass& y)
|
||||||
|
Loading…
Reference in New Issue
Block a user