1 /* PR middle-end/86308 - ICE in verify_gimple calling index() with
2    an invalid declaration
3    { dg-do compile }
4    { dg-options "-O2 -Wall" }  */
5 
6 int index (int, int);   /* { dg-warning "conflicting types for built-in function .index.; expected .char \\\*\\\(const char \\\*, int\\\)." } */
7 
test_index(void)8 int test_index (void)
9 {
10   return index (0, 0);
11 }
12 
13 
14 /* PR middle-end/86202 - ICE in get_range_info calling an invalid memcpy()
15    declaration */
16 
17 void *memcpy (void *, void *, __SIZE_TYPE__ *);   /* { dg-warning "conflicting types for built-in function .memcpy.; expected .void \\\*\\\(void \\\*, const void \\\*, \(long \)?unsigned int\\\)." } */
18 
test_memcpy(void * p,void * q,__SIZE_TYPE__ * r)19 void test_memcpy (void *p, void *q, __SIZE_TYPE__ *r)
20 {
21   memcpy (p, q, r);
22 }
23