gcc/testsuite/gm2/cse/pass/testcse8.c
raw| 1 | |
| 2 | struct m2string { |
| 3 | char *contents; |
| 4 | int HIGH; |
| 5 | }; |
| 6 | |
| 7 | typedef struct m2string STRING; |
| 8 | static inline void inline StrLen (STRING a) __attribute__ ((always_inline)); |
| 9 | static inline void inline foo (void) __attribute__ ((always_inline)); |
| 10 | |
| 11 | static void StrLen (STRING f) |
| 12 | { |
| 13 | **((char **)&f) = 'g'; |
| 14 | } |
| 15 | |
| 16 | static void foo (void) |
| 17 | { |
| 18 | STRING a; |
| 19 | |
| 20 | a.contents = "hello"; |
| 21 | a.HIGH = 6; |
| 22 | StrLen(a); |
| 23 | } |
| 24 | |
| 25 | void init (void) |
| 26 | { |
| 27 | foo(); |
| 28 | } |
| 29 | |
| 30 |