aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/langs2.cxx
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1995-02-12 17:55:09 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1995-02-12 17:55:09 +0000
commitc44c67b5ae95c3e4201e0cbed7ebf429bc2d664a (patch)
tree5d83675cd0e69cbeead93e8359c2e659582fae7f /gdb/testsuite/gdb.base/langs2.cxx
parent21af55c92d1da8777dd6b71b686f6672670bf3ba (diff)
downloadgdb-c44c67b5ae95c3e4201e0cbed7ebf429bc2d664a.zip
gdb-c44c67b5ae95c3e4201e0cbed7ebf429bc2d664a.tar.gz
gdb-c44c67b5ae95c3e4201e0cbed7ebf429bc2d664a.tar.bz2
* gdb.base/langs.exp, gdb.base/langs*: New test.
* gdb.base/Makefile.in: Build it. * TODO: Remove item about checking that C names don't get C++ demangling applied; this test tests it.
Diffstat (limited to 'gdb/testsuite/gdb.base/langs2.cxx')
-rw-r--r--gdb/testsuite/gdb.base/langs2.cxx13
1 files changed, 13 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.base/langs2.cxx b/gdb/testsuite/gdb.base/langs2.cxx
new file mode 100644
index 0000000..d8ee56c
--- /dev/null
+++ b/gdb/testsuite/gdb.base/langs2.cxx
@@ -0,0 +1,13 @@
+extern "C" int csub (int);
+int
+foo (int x)
+{
+ return csub (x / 2);
+}
+
+extern "C" int cppsub_ (int);
+int
+cppsub_ (int *y)
+{
+ return foo (*y);
+}