Mercurial > lcfOS
comparison python/testc3.py @ 228:7f18ed9b6b7e
Removal of emptystatement class
author | Windel Bouwman |
---|---|
date | Sat, 13 Jul 2013 11:12:24 +0200 |
parents | 82dfe6a32717 |
children | 88a1e0baef65 |
comparison
equal
deleted
inserted
replaced
227:82dfe6a32717 | 228:7f18ed9b6b7e |
---|---|
254 function void t(int a, double b) | 254 function void t(int a, double b) |
255 { | 255 { |
256 pa = 2; // type conflict | 256 pa = 2; // type conflict |
257 pa = &a; | 257 pa = &a; |
258 pa = &2; | 258 pa = &2; |
259 &a = 3; // no valid lvalue and incorrect types. | |
260 &a = pa; // No valid lvalue | 259 &a = pa; // No valid lvalue |
261 **pa = 22; // Cannot deref int | 260 **pa = 22; // Cannot deref int |
262 } | 261 } |
263 """ | 262 """ |
264 self.expectErrors(snippet, [6, 9, 9, 10, 11]) | 263 self.expectErrors(snippet, [6, 9, 10]) |
265 | 264 |
266 def testComplexType(self): | 265 def testComplexType(self): |
267 snippet = """ | 266 snippet = """ |
268 package testpointer; | 267 package testpointer; |
269 type int my_int; | 268 type int my_int; |