1 ; RUN: not llvm-as < %s 2>&1 | FileCheck %s
3 ; CHECK: Calling convention parameter requires byval
4 ; CHECK-NEXT: void (i32)* @non_ptr_arg0
5 define x86_intrcc void @non_ptr_arg0(i32) {
9 ; CHECK: Calling convention parameter requires byval
10 ; CHECK-NEXT: void (i32*)* @non_byval_ptr_arg0
11 define x86_intrcc void @non_byval_ptr_arg0(i32*) {
15 ; CHECK: Calling convention parameter requires byval
16 ; CHECK-NEXT: void (i32)* @non_ptr_arg0_decl
17 declare x86_intrcc void @non_ptr_arg0_decl(i32)
19 ; CHECK: Calling convention parameter requires byval
20 ; CHECK-NEXT: void (i32*)* @non_byval_ptr_arg0_decl
21 declare x86_intrcc void @non_byval_ptr_arg0_decl(i32*)