diff options
Diffstat (limited to 'tools/conf_tests/std_time_t_is_not_int32.cc')
-rw-r--r-- | tools/conf_tests/std_time_t_is_not_int32.cc | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tools/conf_tests/std_time_t_is_not_int32.cc b/tools/conf_tests/std_time_t_is_not_int32.cc new file mode 100644 index 00000000..5dff2abb --- /dev/null +++ b/tools/conf_tests/std_time_t_is_not_int32.cc @@ -0,0 +1,20 @@ +// Configuration-time test program, used in Meson build. +// Test whether std::time_t and gint32 are typedefs of the same builting type. +// If they aren't then they can be used for method overload. +// Corresponds to the M4 macro GLIBMM_C_STD_TIME_T_IS_NOT_INT32. + +#include <ctime> + +int main() +{ + typedef signed int gint32; + class Test + { + void something(gint32 val) + {} + + void something(std::time_t val) + {} + }; + return 0; +} |