Closed
Description
Bugzilla Link | 38112 |
Version | trunk |
OS | All |
Reporter | LLVM Bugzilla Contributor |
CC | @dwblaikie,@rnapier |
Extended Description
Compile the following with '-Wuninitialized' and clang fails to diagnose the uninitialized variable.
------------------- test.c -----------------------
extern void foo(const char *p);
int main(){
char *p;
foo(p); // Should produce warning but doesn't
}
If "const" is removed from the parameter to "foo", the warning is emitted as expected.