996
|
1 # test intercal assembler
|
|
2
|
|
3 # Copyright (c) 2006-2008 Claudio Calvelli, all rights reserved.
|
|
4
|
|
5 # CLC-INTERCAL is copyrighted software. However, permission to use, modify,
|
|
6 # and distribute it is granted provided that the conditions set out in the
|
|
7 # licence agreement are met. See files README and COPYING in the distribution.
|
|
8
|
|
9 my @all_tests = (
|
|
10 ['Comment 1', '', "*000 C\n", 0, "[ MSP #0 [ MUL { #67 } ] ]"],
|
|
11 ['Comment 2', '', '', undef, "PLEASE NOTE: EMPTY PROGRAM"],
|
|
12 ['Splat', '', "*456 No splat\n", 456, "[ MSP #456 #0 ]"],
|
|
13 ['READ OUT', '', "XII\nVI\n", undef,
|
|
14 "[ STO #6 SPO #1 ]\n[ STO #12 TSP #1 ]\n" .
|
|
15 "[ STO MUL { #67 #76 #67 } %RT ]\n[ ROU [ TSP #1 + SPO #1 ] ]"],
|
|
16 # XXX more tests would be nice
|
|
17 );
|
|
18
|
|
19 require 't/compiler-test';
|
|
20
|
|
21 runtest('asm', '[ GUP ]', \@all_tests);
|
|
22
|