aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.chill/result.ch
diff options
context:
space:
mode:
authorPer Bothner <per@bothner.com>1994-06-14 23:23:14 +0000
committerPer Bothner <per@bothner.com>1994-06-14 23:23:14 +0000
commitccda44f92fd49b95bd437a1c153b000647cc37ae (patch)
tree9bb112f2899f20b58f78f49ae1bd200ef144abf1 /gdb/testsuite/gdb.chill/result.ch
parentf2d9c058026d32e92d1593a084bcf2e34e915f92 (diff)
downloadfsf-binutils-gdb-ccda44f92fd49b95bd437a1c153b000647cc37ae.zip
fsf-binutils-gdb-ccda44f92fd49b95bd437a1c153b000647cc37ae.tar.gz
fsf-binutils-gdb-ccda44f92fd49b95bd437a1c153b000647cc37ae.tar.bz2
* result.ch, result.exp, Makefile.in: New test case.
* pr-4975.ch, pr-4975-grt.ch, pr-4975.exp, Makefile.in: Ditto.
Diffstat (limited to 'gdb/testsuite/gdb.chill/result.ch')
-rw-r--r--gdb/testsuite/gdb.chill/result.ch16
1 files changed, 16 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.chill/result.ch b/gdb/testsuite/gdb.chill/result.ch
new file mode 100644
index 0000000..71e6400
--- /dev/null
+++ b/gdb/testsuite/gdb.chill/result.ch
@@ -0,0 +1,16 @@
+test_result: MODULE
+
+ DCL i INT := 5;
+
+ simple_func: PROC () RETURNS (INT);
+ DCL j INT := i;
+ RESULT 10;
+ i + := 2;
+ RESULT j + 2;
+ i + := 2;
+ END simple_func;
+
+ i := simple_func ();
+ i := simple_func ();
+ i * := 10;
+END test_result;