comparison python/testc3.py @ 280:02385f62f250

Rework from str interface to Instruction interface
author Windel Bouwman
date Sat, 02 Nov 2013 10:03:26 +0100
parents e64bae57cda8
children
comparison
equal deleted inserted replaced
279:2ccd57b1d78c 280:02385f62f250
294 snippet = """ 294 snippet = """
295 package testpointer; 295 package testpointer;
296 var int* pa, pb; 296 var int* pa, pb;
297 function void t(int a, double b) 297 function void t(int a, double b)
298 { 298 {
299 pa = &a; 299 var int a2;
300 a2 = a; // parameters cannot be escaped for now..
301 pa = &a2;
300 pb = pa; 302 pb = pa;
301 *pa = 22; 303 *pa = 22;
302 } 304 }
303 """ 305 """
304 self.expectOK(snippet) 306 self.expectOK(snippet)