Mercurial > lcfOS
comparison test/testcg.py @ 290:7b38782ed496
File moves
author | Windel Bouwman |
---|---|
date | Sun, 24 Nov 2013 11:24:15 +0100 |
parents | 05184b95fa16 |
children | 534b94b40aa8 |
comparison
equal
deleted
inserted
replaced
289:bd2593de3ff8 | 290:7b38782ed496 |
---|---|
1 import unittest | 1 import unittest |
2 import ppci, codegen, ir | 2 import ppci, codegen, ir |
3 import cortexm3 as arm | 3 import cortexm3 as arm |
4 import codegenarm | 4 import codegenarm |
5 import outstream | 5 import outstream |
6 | |
6 | 7 |
7 def genTestFunction(): | 8 def genTestFunction(): |
8 m = ir.Module('tst') | 9 m = ir.Module('tst') |
9 f = ir.Function('tst') | 10 f = ir.Function('tst') |
10 m.addFunction(f) | 11 m.addFunction(f) |
36 #s.dump() | 37 #s.dump() |
37 | 38 |
38 | 39 |
39 if __name__ == '__main__': | 40 if __name__ == '__main__': |
40 unittest.main() | 41 unittest.main() |
41 |