new testcase
[oota-llvm.git] / test / Feature / alignment.ll
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 }