2014-05-10 00:32:13 +02:00
|
|
|
; RUN: not llvm-as %s -o /dev/null 2>&1 | FileCheck %s
|
|
|
|
|
2020-11-20 20:07:11 +01:00
|
|
|
declare void @a(i32* sret(i32) %a, i32* sret(i32) %b)
|
2014-05-10 00:32:13 +02:00
|
|
|
; CHECK: Cannot have multiple 'sret' parameters!
|
|
|
|
|
2020-11-20 20:07:11 +01:00
|
|
|
declare void @b(i32* %a, i32* %b, i32* sret(i32) %c)
|
2014-05-10 00:32:13 +02:00
|
|
|
; CHECK: Attribute 'sret' is not on first or second parameter!
|
2020-11-21 00:14:28 +01:00
|
|
|
|
2021-07-14 20:58:52 +02:00
|
|
|
; CHECK: Attribute 'sret(i32)' applied to incompatible type!
|
2020-11-21 00:14:28 +01:00
|
|
|
; CHECK-NEXT: void (i32)* @not_ptr
|
|
|
|
declare void @not_ptr(i32 sret(i32) %x)
|