aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/langs2.c
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.c
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.c')
-rw-r--r--gdb/testsuite/gdb.base/langs2.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.base/langs2.c b/gdb/testsuite/gdb.base/langs2.c
new file mode 100644
index 0000000..69f290d
--- /dev/null
+++ b/gdb/testsuite/gdb.base/langs2.c
@@ -0,0 +1,15 @@
+/* This is intended to be a vague simulation of cfront output. */
+#line 1 "langs2.cxx"
+extern int csub ();
+int
+foo__Fi (x) int x;
+{
+ return csub (x / 2);
+}
+
+extern int cppsub_ (int *);
+int
+cppsub_ (y) int *y;
+{
+ return foo__Fi (*y);
+}