]>
Commit | Line | Data |
---|---|---|
455464ab JJ |
1 | /* PR target/61060 */ |
2 | /* { dg-do compile } */ | |
3 | /* { dg-options "-O0 -ftree-ter" } */ | |
4 | ||
5 | typedef __SIZE_TYPE__ size_t; | |
6 | ||
7 | extern inline __attribute__ ((gnu_inline, always_inline, artificial)) | |
8 | void *memset (void *dest, int ch, size_t len) | |
9 | { | |
10 | return __builtin_memset (dest, ch, len); | |
11 | } | |
12 | ||
13 | char buf[10]; | |
14 | ||
15 | void | |
16 | foo (void) | |
17 | { | |
18 | memset (buf, sizeof (buf), 0); | |
19 | } |