This source file includes following definitions.
- doChar
- doInt
- doOff
- doPtr
- doStruct
- main
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 #include <config.h>
21
22 #include "ignore-value.h"
23
24 #include <stdio.h>
25
26 #include "attribute.h"
27
28 struct s { int i; };
29 NODISCARD static char doChar (void);
30 NODISCARD static int doInt (void);
31 NODISCARD static off_t doOff (void);
32 NODISCARD static void *doPtr (void);
33 NODISCARD static struct s doStruct (void);
34
35 static char
36 doChar (void)
37 {
38 return 0;
39 }
40
41 static int
42 doInt (void)
43 {
44 return 0;
45 }
46
47 static off_t
48 doOff (void)
49 {
50 return 0;
51 }
52
53 static void *
54 doPtr (void)
55 {
56 return NULL;
57 }
58
59 static struct s
60 doStruct (void)
61 {
62 static struct s s1;
63 return s1;
64 }
65
66 int
67 main (void)
68 {
69
70
71
72 ignore_value (doChar ());
73 ignore_value (doInt ());
74 ignore_value (doOff ());
75 ignore_value (doPtr ());
76 ignore_value (doStruct ());
77 return 0;
78 }