comparison test/testzcc.py @ 322:44f336460c2a

Half of use of burg spec for arm
author Windel Bouwman
date Mon, 27 Jan 2014 19:58:07 +0100
parents 8c569fbe60e4
children 8f6f3ace4e78
comparison
equal deleted inserted replaced
321:8c569fbe60e4 322:44f336460c2a
75 function void t2() {var int t3; t3 = 2;} 75 function void t2() {var int t3; t3 = 2;}
76 """ 76 """
77 f = io.StringIO(src) 77 f = io.StringIO(src)
78 diag = ppci.DiagnosticsManager() 78 diag = ppci.DiagnosticsManager()
79 outs = outstream.TextOutputStream() 79 outs = outstream.TextOutputStream()
80 tg = target.armtarget 80 tg = target.target_list.armtarget
81 self.assertTrue(zcc.zcc([f], [], tg, outs, diag)) 81 self.assertTrue(zcc.zcc([f], [], tg, outs, diag))
82 code = outs.getSection('code') 82 code = outs.getSection('code')
83 self.assertEqual(0x08000000, code.address) 83 self.assertEqual(0x08000000, code.address)
84 data = outs.getSection('data') 84 data = outs.getSection('data')
85 self.assertEqual(0x20000000, data.address) 85 self.assertEqual(0x20000000, data.address)