Chris Lattner | 4a8068f | 2003-01-13 01:03:16 +0000 | [diff] [blame^] | 1 | |
2 | int %main() { | ||||
3 | %X = malloc int ; constant size | ||||
4 | %Y = malloc int, uint 100 ; constant size | ||||
5 | %u = add uint 1, 2 | ||||
6 | %Z = malloc int, uint %u ; variable size | ||||
7 | free int* %X | ||||
8 | free int* %Y | ||||
9 | free int* %Z | ||||
10 | ret int 0 | ||||
11 | } |