diff options
author | Stan Shebs <shebs@apple.com> | 1999-04-16 01:33:56 +0000 |
---|---|---|
committer | Stan Shebs <shebs@apple.com> | 1999-04-16 01:33:56 +0000 |
commit | 838ae13dc4ab603f1efdf1da653e2ca1b7b009e1 (patch) | |
tree | 8d3c114b0ba9d2a1f0dcadd192ba2aaeeafe7175 /gdb/testsuite/gdb.base/langs0.c | |
download | gdb-838ae13dc4ab603f1efdf1da653e2ca1b7b009e1.tar.gz |
Initial revision
Diffstat (limited to 'gdb/testsuite/gdb.base/langs0.c')
-rw-r--r-- | gdb/testsuite/gdb.base/langs0.c | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.base/langs0.c b/gdb/testsuite/gdb.base/langs0.c new file mode 100644 index 00000000000..69c0ce8b0fa --- /dev/null +++ b/gdb/testsuite/gdb.base/langs0.c @@ -0,0 +1,28 @@ +/* This file is actually in C, it is not supposed to simulate something + translated from another language or anything like that. */ +int +csub (x) + int x; +{ + return x + 1; +} + +int +langs0__2do () +{ + return fsub_ () + 2; +} + +int +main () +{ +#ifdef usestubs + set_debug_traps(); + breakpoint(); +#endif + if (langs0__2do () == 5003) + /* Success. */ + return 0; + else + return 1; +} |