add test case for r74407.

llvm-svn: 74761
This commit is contained in:
Zhongxing Xu 2009-07-03 05:33:23 +00:00
parent 95dd8657ca
commit 9988bab609
1 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1,7 @@
// RUN: clang-cc -analyze -checker-cfref -analyzer-store=basic --verify %s &&
// RUN: clang-cc -analyze -checker-cfref -analyzer-store=region --verify %s
void foo() {
int *p = (int*) 0x10000; // Should not crash here.
*p = 3;
}