PR tree-optimization/83369 - Missing diagnostics during inlining
[official-gcc.git] / gcc / testsuite / gcc.dg / pr40340.h
blob174e076b943f6cb4203de55cf0f3d0bb161e9013
1 #pragma GCC system_header
2 typedef __SIZE_TYPE__ size_t;
3 extern void *memset (void *s, int c, size_t n)
4 __attribute__ ((nothrow, nonnull (1)));
5 extern inline
6 __attribute__ ((always_inline, artificial, gnu_inline, nothrow))
7 void *
8 memset (void *dest, int ch, size_t len)
10 return __builtin___memset_chk (dest, ch, len,
11 __builtin_object_size (dest, 0));
14 #ifdef TEST2
15 static void
16 __attribute__ ((noinline))
17 test2 (void)
19 char buf[4];
20 memset (buf, 0, 6);
22 #endif
24 #ifdef TEST3
25 static inline void
26 __attribute__ ((always_inline))
27 test3 (char *p)
29 memset (p, 0, 6);
31 #endif