postgresql/src/makefiles
Peter Eisentraut 476b35d4e3 tests: Add a test C++ extension module
While we already test that our headers are valid C++ using
headerscheck, it turns out that the macros we define might still
expand to invalid C++ code.  This adds a minimal test extension that
is compiled using C++ to test that it's actually possible to build and
run extensions written in C++.  Future commits will improve C++
compatibility of some of our macros and add usage of them to this
extension make sure that they don't regress in the future.

The test module is for the moment disabled when using MSVC.  In
particular, the use of designated initializers in PG_MODULE_MAGIC
would require C++20, for which we are currently not set up.  (GCC and
Clang support it as extensions.)  It is planned to fix this.

Author: Jelte Fennema-Nio <postgres@jeltef.nl>
Discussion: https://www.postgresql.org/message-id/flat/CAGECzQR21OnnKiZO_1rLWO0-16kg1JBxnVq-wymYW0-_1cUNtg@mail.gmail.com
2026-01-20 16:42:30 +01:00
..
Makefile Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
Makefile.cygwin autoconf: Rely on ar supporting index creation 2022-10-07 11:53:39 -07:00
Makefile.darwin autoconf: Rely on ar supporting index creation 2022-10-07 11:53:39 -07:00
Makefile.freebsd autoconf: Move export_dynamic determination to configure 2022-12-06 18:55:28 -08:00
Makefile.linux autoconf: Move export_dynamic determination to configure 2022-12-06 18:55:28 -08:00
Makefile.netbsd autoconf: Move export_dynamic determination to configure 2022-12-06 18:55:28 -08:00
Makefile.openbsd autoconf: Move export_dynamic determination to configure 2022-12-06 18:55:28 -08:00
Makefile.solaris autoconf: Move export_dynamic determination to configure 2022-12-06 18:55:28 -08:00
Makefile.win32 autoconf: Rely on ar supporting index creation 2022-10-07 11:53:39 -07:00
meson.build tests: Add a test C++ extension module 2026-01-20 16:42:30 +01:00
pgxs.mk pgxs.mk: remove unreachable rule for deleting regress.def. 2025-06-20 12:12:29 -04:00