pr19967.c

来自「用于进行gcc测试」· C语言 代码 · 共 27 行

C
27
字号
/* PR middle-end/19967   These functions mentioned below are supposed to return char *.   However, fold_builtin_... had bugs that caused the return types to   be const char *.  *//* { dg-do compile } *//* { dg-options "-pedantic" } */char *strchr(const char *, int);char *strrchr(const char *, int);char *index(const char *, int);char *rindex(const char *, int);char *strpbrk(const char *, const char *);char *strstr(const char *, const char *);char *p;voidf (void){  p = strchr(__func__, 'f');  p = strrchr(__func__, 'f');  p = index(__func__, 'f');  p = rindex(__func__, 'f');  p = strpbrk(__func__, "f");  p = strstr(__func__, "f");}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?