aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/langs2.c
diff options
context:
space:
mode:
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);
+}