Update credits and fix sorting issue.
[llvm-complete.git] / test / Feature / alignment.ll
blob6ea7d8d7ff464b027d724256163fca9034336196
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
5 %X = global int 4, align 16
7 int *%test() align 32 {
8         %X = alloca int, align 4
9         %Y = alloca int, uint 42, align 16
10         %Z = alloca int, align 0
11         ret int *%X
14 int *%test2() {
15         %X = malloc int, align 4
16         %Y = malloc int, uint 42, align 16
17         %Z = malloc int, align 0
18         ret int *%X