-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathtestc.c
48 lines (42 loc) · 1.08 KB
/
testc.c
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#include <stdio.h>
struct S
{
signed char sc;
unsigned char uc;
signed short ss;
unsigned short us;
signed int si;
unsigned int ui;
signed long sl;
unsigned long ul;
signed long long sll;
unsigned long long ull;
float f;
double d;
long double ild;
_Imaginary float imf;
_Imaginary double imd;
_Imaginary long double imld;
_Complex float cf;
_Complex double cd;
_Complex long double cld;
union {
char *cp;
void *vp;
int *ip;
};
};
typedef struct S TD;
void func(signed char sc, unsigned char uc, signed short ss, unsigned short us, signed int si, unsigned int ui, signed long sl, unsigned long ul, signed long long sll, unsigned long long ull)
{
}
void ffunc(float f, double d, long double ld) {}
void cfunc(_Complex float f, _Complex double d, _Complex long double ld) {}
int ifunc(_Imaginary float f, _Imaginary double d, _Imaginary long double ld) {}
TD sfunc(struct S s) { return s; }
int main(int argc, char *argv)
{
printf("Hello\n");
printf("Hello %d\n", 137);
return 0;
}