Now that we check for a C++ compiler in configure.in anyway, I added a
authorSebastian Wilhelmi <wilhelmi@ira.uka.de>
Tue, 29 May 2001 14:17:23 +0000 (14:17 +0000)
committerSebastian Wilhelmi <wilhelmi@src.gnome.org>
Tue, 29 May 2001 14:17:23 +0000 (14:17 +0000)
2001-05-29  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* 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
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
tests/.cvsignore
tests/Makefile.am
tests/cxx-test.C [new file with mode: 0644]

index d6cbed9..981c0e1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2001-05-29  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
+       * 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.
 
index d6cbed9..981c0e1 100644 (file)
@@ -1,5 +1,9 @@
 2001-05-29  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
+       * 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.
 
index d6cbed9..981c0e1 100644 (file)
@@ -1,5 +1,9 @@
 2001-05-29  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
+       * 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.
 
index d6cbed9..981c0e1 100644 (file)
@@ -1,5 +1,9 @@
 2001-05-29  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
+       * 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.
 
index d6cbed9..981c0e1 100644 (file)
@@ -1,5 +1,9 @@
 2001-05-29  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
+       * 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.
 
index d6cbed9..981c0e1 100644 (file)
@@ -1,5 +1,9 @@
 2001-05-29  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
+       * 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.
 
index d6cbed9..981c0e1 100644 (file)
@@ -1,5 +1,9 @@
 2001-05-29  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
+       * 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.
 
index d6cbed9..981c0e1 100644 (file)
@@ -1,5 +1,9 @@
 2001-05-29  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
+       * 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.
 
index 15bf597..199aeb0 100644 (file)
@@ -13,6 +13,7 @@ _libs
 libmoduletestplugin_a.la
 libmoduletestplugin_b.la
 array-test
+cxx-test
 date-test
 dirname-test
 hash-test
index f56ba6c..84024fe 100644 (file)
@@ -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 (file)
index 0000000..ae459f8
--- /dev/null
@@ -0,0 +1,9 @@
+#include <glib.h>
+#include <gmodule.h>
+#include <glib-object.h>
+
+int
+main ()
+{
+  return 0;
+}