Chris Lattner | 4e240c2 | 2005-11-05 22:07:30 +0000 | [diff] [blame^] | 1 | ; RUN: llvm-as %s -o - | llvm-dis > %t1.ll |
2 | ; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll | ||||
3 | ; RUN: diff %t1.ll %t2.ll | ||||
4 | |||||
5 | int *%test() { | ||||
6 | %X = alloca int, align 4 | ||||
7 | %Y = alloca int, uint 42, align 16 | ||||
8 | %Z = alloca int, align 0 | ||||
9 | ret int *%X | ||||
10 | } | ||||
11 | |||||
12 | int *%test2() { | ||||
13 | %X = malloc int, align 4 | ||||
14 | %Y = malloc int, uint 42, align 16 | ||||
15 | %Z = malloc int, align 0 | ||||
16 | ret int *%X | ||||
17 | } |