git @ Cat's Eye Technologies SixtyPical / 684256f
Start of tests for this. Chris Pressey 2 years ago
3 changed file(s) with 26 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
99 "tests/SixtyPical Storage.md" \
1010 "tests/SixtyPical Control Flow.md" \
1111 "tests/SixtyPical Fallthru.md" \
12 "tests/SixtyPical Callgraph.md" \
1213 "tests/SixtyPical Compilation.md"
0 SixtyPical Callgraph
1 ====================
2
3 This is a test suite, written in [Falderal][] format, for the ability of
4 a SixtyPical analyzer to construct a callgraph of which routines call which
5 other routines, and its ability to discover which routines will never be
6 called.
7
8 [Falderal]: http://catseye.tc/node/Falderal
9
10 -> Tests for functionality "Dump callgraph info for SixtyPical program"
11
12 The `main` routine is always called.
13
14 | define main routine
15 | {
16 | }
17 = [
18 = [
19 = "main"
20 = ]
21 = ]
1515 -> Functionality "Dump fallthru info for SixtyPical program" is implemented by
1616 -> shell command "bin/sixtypical --optimize-fallthru --dump-fallthru-info --analyze-only --traceback %(test-body-file)"
1717
18 -> Functionality "Dump callgraph info for SixtyPical program" is implemented by
19 -> shell command "bin/sixtypical --dump-callgraph --analyze-only --traceback %(test-body-file)"
20
1821 -> Functionality "Compile SixtyPical program with fallthru optimization" is implemented by
1922 -> shell command "bin/sixtypical --output-format=c64-basic-prg --optimize-fallthru --traceback %(test-body-file) --output /tmp/foo && tests/appliances/bin/dcc6502-adapter </tmp/foo"