Anton Korobeynikov | 414d896 | 2011-04-14 20:06:49 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -triple arm-none-linux-gnueabi -emit-llvm -w -o - < %s | FileCheck %s |
2 | typedef int __attribute__((pcs("aapcs"))) (*aapcs_fn)(void); | ||||
3 | typedef int __attribute__((pcs("aapcs-vfp"))) (*aapcs_vfp_fn)(void); | ||||
4 | |||||
5 | aapcs_fn bar; | ||||
6 | |||||
7 | int foo(aapcs_vfp_fn baz) { | ||||
8 | // CHECK: define i32 @foo | ||||
9 | // CHECK: call arm_aapcscc | ||||
10 | // CHECK: call arm_aapcs_vfpcc | ||||
11 | return bar() + baz(); | ||||
12 | } |