blob: d6f61edb741f71d397fbf364297b926d0a2dac12 (
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
27
28
29
30
|
struct m2string {
char *contents;
int HIGH;
};
typedef struct m2string STRING;
static inline void inline StrLen (STRING a) __attribute__ ((always_inline));
static inline void inline foo (void) __attribute__ ((always_inline));
static void StrLen (STRING f)
{
**((char **)&f) = 'g';
}
static void foo (void)
{
STRING a;
a.contents = "hello";
a.HIGH = 6;
StrLen(a);
}
void init (void)
{
foo();
}
|