aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/calling-convention-attributes.c
blob: 1c1c876610a4272d2c274f2ac74d74de6f39af7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
extern void __attribute__((cdecl)) c1(void);
typedef void (__attribute__((cdecl)) *c2)(void);
typedef c2 c2ptr;

extern void __attribute__((__cdecl__)) c_1(void);
typedef void (__attribute__((__cdecl__)) *c_2)(void);
typedef c_2 c_2ptr;

extern void __attribute__((stdcall)) s1(void);
typedef void (__attribute__((stdcall)) *s2)(void);
typedef s2 s2ptr;

extern void __attribute__((__stdcall__)) s_1(void);
typedef void (__attribute__((__stdcall__)) *s_2)(void);
typedef s_2 s_2ptr;

extern void __attribute__((fastcall)) f1(void);
typedef void (__attribute__((fastcall)) *f2)(void);
typedef f2 f2ptr;

extern void __attribute__((__fastcall__)) f_1(void);
typedef void (__attribute__((__fastcall__)) *f_2)(void);
typedef f_2 f_2ptr;
/*
 * check-name: Calling convention attributes
 */