1*f4a2713aSLionel Sambuc // REQUIRES: arm-registered-target 2*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -triple arm-none-linux-gnueabi -emit-llvm -w -o - < %s | FileCheck %s 3*f4a2713aSLionel Sambuc typedef int __attribute__((pcs("aapcs"))) (*aapcs_fn)(void); 4*f4a2713aSLionel Sambuc typedef int __attribute__((pcs("aapcs-vfp"))) (*aapcs_vfp_fn)(void); 5*f4a2713aSLionel Sambuc 6*f4a2713aSLionel Sambuc aapcs_fn bar; 7*f4a2713aSLionel Sambuc foo(aapcs_vfp_fn baz)8*f4a2713aSLionel Sambucint foo(aapcs_vfp_fn baz) { 9*f4a2713aSLionel Sambuc // CHECK-LABEL: define i32 @foo 10*f4a2713aSLionel Sambuc // CHECK: call arm_aapcscc 11*f4a2713aSLionel Sambuc // CHECK: call arm_aapcs_vfpcc 12*f4a2713aSLionel Sambuc return bar() + baz(); 13*f4a2713aSLionel Sambuc } 14