File tree 3 files changed +24
-0
lines changed
3 files changed +24
-0
lines changed File renamed without changes.
Original file line number Diff line number Diff line change
1
+ void __attribute__((pcs ("aapcs" ))) foo1 (float * a );
2
+ void __attribute__((pcs ("aapcs-vfp" ))) foo2 (float * a );
3
+
4
+ // translate
5
+ // expect=fail
6
+ // target=arm-linux-none
7
+ //
8
+ // pub extern fn foo1(a: [*c]f32) callconv(.{ .arm_aapcs = .{} }) void;
9
+ // pub extern fn foo2(a: [*c]f32) callconv(.{ .arm_aapcs_vfp = .{} }) void;
Original file line number Diff line number Diff line change
1
+ void __attribute__((fastcall )) foo1 (float * a );
2
+ void __attribute__((stdcall )) foo2 (float * a );
3
+ void __attribute__((vectorcall )) foo3 (float * a );
4
+ void __attribute__((cdecl )) foo4 (float * a );
5
+ void __attribute__((thiscall )) foo5 (float * a );
6
+
7
+ // translate
8
+ // expect=fail
9
+ // target=x86-linux-none
10
+ //
11
+ // pub extern fn foo1(a: [*c]f32) callconv(.{ .x86_fastcall = .{} }) void;
12
+ // pub extern fn foo2(a: [*c]f32) callconv(.{ .x86_stdcall = .{} }) void;
13
+ // pub extern fn foo3(a: [*c]f32) callconv(.{ .x86_vectorcall = .{} }) void;
14
+ // pub extern fn foo4(a: [*c]f32) void;
15
+ // pub extern fn foo5(a: [*c]f32) callconv(.{ .x86_thiscall = .{} }) void;
You can’t perform that action at this time.
0 commit comments