-
Notifications
You must be signed in to change notification settings - Fork 15.4k
Open
Labels
Description
| Bugzilla Link | 43624 |
| Version | trunk |
| OS | Linux |
| CC | @davidbolvansky,@DougGregor,@zygoloid,@stephenhines |
Extended Description
#include <stdio.h>
#include <string.h>
void f(const char *s){
char foo [] = "hello\n";
printf("%lu\n", strlen(foo));
foo[0] = '\0';
printf("%lu\n", strlen(foo));
}
Looks like GCC nicely determines the strlen at compile time. Seems nice to have.