| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-options "-w" } */ |
| 3 |
|
| 4 |
extern void abort(void); |
| 5 |
extern long long strcspn(const char *, const char *); |
| 6 |
|
| 7 |
void main_test(void) { |
| 8 |
const char *const s1 = "hello world"; |
| 9 |
char dst[64], *d2; |
| 10 |
|
| 11 |
if (strcspn(++d2 + 5, "") != 5 || d2 != dst + 1) |
| 12 |
abort(); |
| 13 |
} |