2017-03-04 02:02:02 +08:00
|
|
|
// RUN: %clang_analyze_cc1 -analyzer-checker=core,alpha.core -analyzer-store=region -verify %s
|
2012-10-19 20:44:48 +08:00
|
|
|
// expected-no-diagnostics
|
2009-07-03 13:33:23 +08:00
|
|
|
|
|
|
|
void foo() {
|
|
|
|
int *p = (int*) 0x10000; // Should not crash here.
|
|
|
|
*p = 3;
|
|
|
|
}
|