blob: 0a63675bd0d255911b6ce832797785268a75cbdc [file] [log] [blame]
Chris Lattner4e240c22005-11-05 22:07:30 +00001; 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
5int *%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
12int *%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}