From 68e002beed7e0584aa11359d7b356a0bbaeaa210 Mon Sep 17 00:00:00 2001 From: Sebastian Wilhelmi Date: Tue, 29 May 2001 14:17:23 +0000 Subject: [PATCH] Now that we check for a C++ compiler in configure.in anyway, I added a 2001-05-29 Sebastian Wilhelmi * tests/Makefile.am, tests/cxx-test.C: Now that we check for a C++ compiler in configure.in anyway, I added a test, that the GLib headers can be inclued into a C++ program. This fixes bug #52605. --- ChangeLog | 4 ++++ ChangeLog.pre-2-0 | 4 ++++ ChangeLog.pre-2-10 | 4 ++++ ChangeLog.pre-2-12 | 4 ++++ ChangeLog.pre-2-2 | 4 ++++ ChangeLog.pre-2-4 | 4 ++++ ChangeLog.pre-2-6 | 4 ++++ ChangeLog.pre-2-8 | 4 ++++ tests/.cvsignore | 1 + tests/Makefile.am | 9 +++++++++ tests/cxx-test.C | 9 +++++++++ 11 files changed, 51 insertions(+) create mode 100644 tests/cxx-test.C diff --git a/ChangeLog b/ChangeLog index d6cbed9fe..981c0e129 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2001-05-29 Sebastian Wilhelmi + * tests/Makefile.am, tests/cxx-test.C: Now that we check for a C++ + compiler in configure.in anyway, I added a test, that the GLib + headers can be inclued into a C++ program. This fixes bug #52605. + * configure.in: Don't bail out, if no C++ compiler is found. Define G_HAVE_ISO_VARARGS only if appropriate. diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index d6cbed9fe..981c0e129 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,5 +1,9 @@ 2001-05-29 Sebastian Wilhelmi + * tests/Makefile.am, tests/cxx-test.C: Now that we check for a C++ + compiler in configure.in anyway, I added a test, that the GLib + headers can be inclued into a C++ program. This fixes bug #52605. + * configure.in: Don't bail out, if no C++ compiler is found. Define G_HAVE_ISO_VARARGS only if appropriate. diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index d6cbed9fe..981c0e129 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,5 +1,9 @@ 2001-05-29 Sebastian Wilhelmi + * tests/Makefile.am, tests/cxx-test.C: Now that we check for a C++ + compiler in configure.in anyway, I added a test, that the GLib + headers can be inclued into a C++ program. This fixes bug #52605. + * configure.in: Don't bail out, if no C++ compiler is found. Define G_HAVE_ISO_VARARGS only if appropriate. diff --git a/ChangeLog.pre-2-12 b/ChangeLog.pre-2-12 index d6cbed9fe..981c0e129 100644 --- a/ChangeLog.pre-2-12 +++ b/ChangeLog.pre-2-12 @@ -1,5 +1,9 @@ 2001-05-29 Sebastian Wilhelmi + * tests/Makefile.am, tests/cxx-test.C: Now that we check for a C++ + compiler in configure.in anyway, I added a test, that the GLib + headers can be inclued into a C++ program. This fixes bug #52605. + * configure.in: Don't bail out, if no C++ compiler is found. Define G_HAVE_ISO_VARARGS only if appropriate. diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index d6cbed9fe..981c0e129 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,5 +1,9 @@ 2001-05-29 Sebastian Wilhelmi + * tests/Makefile.am, tests/cxx-test.C: Now that we check for a C++ + compiler in configure.in anyway, I added a test, that the GLib + headers can be inclued into a C++ program. This fixes bug #52605. + * configure.in: Don't bail out, if no C++ compiler is found. Define G_HAVE_ISO_VARARGS only if appropriate. diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index d6cbed9fe..981c0e129 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,5 +1,9 @@ 2001-05-29 Sebastian Wilhelmi + * tests/Makefile.am, tests/cxx-test.C: Now that we check for a C++ + compiler in configure.in anyway, I added a test, that the GLib + headers can be inclued into a C++ program. This fixes bug #52605. + * configure.in: Don't bail out, if no C++ compiler is found. Define G_HAVE_ISO_VARARGS only if appropriate. diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index d6cbed9fe..981c0e129 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,5 +1,9 @@ 2001-05-29 Sebastian Wilhelmi + * tests/Makefile.am, tests/cxx-test.C: Now that we check for a C++ + compiler in configure.in anyway, I added a test, that the GLib + headers can be inclued into a C++ program. This fixes bug #52605. + * configure.in: Don't bail out, if no C++ compiler is found. Define G_HAVE_ISO_VARARGS only if appropriate. diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index d6cbed9fe..981c0e129 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,5 +1,9 @@ 2001-05-29 Sebastian Wilhelmi + * tests/Makefile.am, tests/cxx-test.C: Now that we check for a C++ + compiler in configure.in anyway, I added a test, that the GLib + headers can be inclued into a C++ program. This fixes bug #52605. + * configure.in: Don't bail out, if no C++ compiler is found. Define G_HAVE_ISO_VARARGS only if appropriate. diff --git a/tests/.cvsignore b/tests/.cvsignore index 15bf597c8..199aeb09d 100644 --- a/tests/.cvsignore +++ b/tests/.cvsignore @@ -13,6 +13,7 @@ _libs libmoduletestplugin_a.la libmoduletestplugin_b.la array-test +cxx-test date-test dirname-test hash-test diff --git a/tests/Makefile.am b/tests/Makefile.am index f56ba6c51..84024fed7 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -23,8 +23,17 @@ BUILT_EXTRA_DIST = \ makefile.mingw \ makefile.msc +if HAVE_CXX +CXX_TEST = cxx-test +cxx_test_LDADD = $(progs_LDADD) +cxx_test_SOURCES = cxx-test.C +else +CXX_TEST = +endif + test_programs = \ array-test \ + $(CXX_TEST) \ date-test \ dirname-test \ gio-test \ diff --git a/tests/cxx-test.C b/tests/cxx-test.C new file mode 100644 index 000000000..ae459f85f --- /dev/null +++ b/tests/cxx-test.C @@ -0,0 +1,9 @@ +#include +#include +#include + +int +main () +{ + return 0; +}