summaryrefslogtreecommitdiff
path: root/tests/cxxlibobj.test
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cxxlibobj.test')
-rwxr-xr-xtests/cxxlibobj.test25
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/cxxlibobj.test b/tests/cxxlibobj.test
new file mode 100755
index 000000000..13add3482
--- /dev/null
+++ b/tests/cxxlibobj.test
@@ -0,0 +1,25 @@
+#! /bin/sh
+
+# Test to make sure LIBOBJS and C++ sources work right.
+
+. $srcdir/defs || exit 1
+
+cat >> configure.in << 'END'
+AC_PROG_CXX
+AC_PROG_CC
+AC_REPLACE_FUNCS(strdup)
+END
+
+cat > Makefile.am << 'END'
+sbin_PROGRAMS = anonymous
+anonymous_SOURCES = doe.C jane.C
+anonymous_LDADD = @LIBOBJS@
+END
+
+: > strdup.c
+: > doe.C
+: > jane.C
+
+$AUTOMAKE || exit 1
+
+grep CC Makefile.in