1 /* PR tree-optimization/83603 - ICE in builtin_memref at
2 gcc/gimple-ssa-warn-restrict.c:238
3 Test to verify that invalid calls to built-in functions declared
4 without a prototype don't cause an ICE.
6 { dg-options "-O2 -Warray-bounds -Wrestrict" } */
16 void* test_memcpy_0 ()
21 void* test_memcpy_1 (void *d
)
26 void* test_memcpy_2 (void *d
, const void *s
)
32 void* test_memmove_0 ()
37 void* test_memmove_1 (void *d
)
42 void* test_memmove_2 (void *d
, const void *s
)
44 return memmove (d
, s
);
48 void* test_stpcpy_0 ()
53 void* test_stpcpy_1 (char *d
)
59 char* test_strcat_0 ()
64 char* test_strcat_1 (char *d
)
70 void* test_strcpy_0 ()
75 void* test_strcpy_1 (char *d
)
81 char* test_strncat_0 ()
86 char* test_strncat_1 (char *d
)
91 char* test_strncat_2 (char *d
, const char *s
)
93 return strncat (d
, s
);
97 void* test_strncpy_0 ()
102 void* test_strncpy_1 (char *d
)
107 void* test_strncpy_2 (char *d
, const char *s
)
109 return strncpy (d
, s
);