2020-09-08 17:10:36 +02:00
|
|
|
; RUN: not llvm-as < %s -o /dev/null 2>&1 | FileCheck %s
|
|
|
|
|
2021-03-28 19:05:17 +02:00
|
|
|
; CHECK: Wrong types for attribute: nest noalias nocapture nonnull readnone readonly byref(i32) byval(i32) inalloca(i32) preallocated(i32) sret(i32) align 1 dereferenceable(1) dereferenceable_or_null(1)
|
2020-09-08 17:10:36 +02:00
|
|
|
; CHECK-NEXT: @align_non_pointer1
|
|
|
|
define void @align_non_pointer1(i32 align 4 %a) {
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
2021-03-28 19:05:17 +02:00
|
|
|
; CHECK: Wrong types for attribute: nest noalias nocapture noundef nonnull readnone readonly signext zeroext byref(void) byval(void) inalloca(void) preallocated(void) sret(void) align 1 dereferenceable(1) dereferenceable_or_null(1)
|
2020-09-08 17:10:36 +02:00
|
|
|
; CHECK-NEXT: @align_non_pointer2
|
|
|
|
define align 4 void @align_non_pointer2(i32 %a) {
|
|
|
|
ret void
|
|
|
|
}
|