mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
Rename test
This commit is contained in:
parent
05235646ef
commit
bb5f60e138
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
#if SOL_TESTS_SIZEOF_VOID_P == 4
|
#if SOL_TESTS_SIZEOF_VOID_P == 4
|
||||||
|
|
||||||
inline namespace sol2_regression_test_XXXX {
|
inline namespace sol2_regression_test_1192 {
|
||||||
struct Test {
|
struct Test {
|
||||||
std::uint64_t dummy;
|
std::uint64_t dummy;
|
||||||
};
|
};
|
||||||
|
@ -10,9 +10,9 @@ inline namespace sol2_regression_test_XXXX {
|
||||||
struct alignas(1024) Test2 {
|
struct alignas(1024) Test2 {
|
||||||
char dummy[1024];
|
char dummy[1024];
|
||||||
};
|
};
|
||||||
} // namespace sol2_regression_test_XXXX
|
} // namespace sol2_regression_test_1192
|
||||||
|
|
||||||
unsigned int regression_XXXX() {
|
unsigned int regression_1192() {
|
||||||
sol::state lua;
|
sol::state lua;
|
||||||
|
|
||||||
static_assert(sizeof(Test) == 8);
|
static_assert(sizeof(Test) == 8);
|
||||||
|
@ -20,7 +20,7 @@ unsigned int regression_XXXX() {
|
||||||
static_assert(sizeof(Test*) == 4);
|
static_assert(sizeof(Test*) == 4);
|
||||||
static_assert(alignof(Test*) == 4);
|
static_assert(alignof(Test*) == 4);
|
||||||
|
|
||||||
/// [sol2] An error occurred and panic has been invoked: aligned allocation of userdata block (data section) for 'sol2_regression_test_XXXX::Test' failed
|
/// [sol2] An error occurred and panic has been invoked: aligned allocation of userdata block (data section) for 'sol2_regression_test_1192::Test' failed
|
||||||
/// Note: may not panic depending on alignment of local variable `alignment_shim` in sol::detail::aligned_space_for
|
/// Note: may not panic depending on alignment of local variable `alignment_shim` in sol::detail::aligned_space_for
|
||||||
lua["test"] = Test {};
|
lua["test"] = Test {};
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@ unsigned int regression_XXXX() {
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
unsigned int regression_XXXX() {
|
unsigned int regression_1192() {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,10 +10,10 @@ extern unsigned int regression_1087();
|
||||||
extern unsigned int regression_1095();
|
extern unsigned int regression_1095();
|
||||||
extern unsigned int regression_1096();
|
extern unsigned int regression_1096();
|
||||||
extern unsigned int regression_1149();
|
extern unsigned int regression_1149();
|
||||||
extern unsigned int regression_XXXX();
|
extern unsigned int regression_1192();
|
||||||
|
|
||||||
static f_ptr* const regression_tests_regressions[]
|
static f_ptr* const regression_tests_regressions[]
|
||||||
= { ®ression_1008, ®ression_1000, ®ression_1067, ®ression_1072, ®ression_1087, ®ression_1095, ®ression_1096, ®ression_1149, ®ression_XXXX };
|
= { ®ression_1008, ®ression_1000, ®ression_1067, ®ression_1072, ®ression_1087, ®ression_1095, ®ression_1096, ®ression_1149, ®ression_1192 };
|
||||||
static const int regression_tests_sizeof_regressions = sizeof(regression_tests_regressions) / sizeof(regression_tests_regressions[0]);
|
static const int regression_tests_sizeof_regressions = sizeof(regression_tests_regressions) / sizeof(regression_tests_regressions[0]);
|
||||||
|
|
||||||
int trampoline(f_ptr* f) {
|
int trampoline(f_ptr* f) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user