diff options
Diffstat (limited to 'clang/test/Analysis/concrete-address.c')
-rw-r--r-- | clang/test/Analysis/concrete-address.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/Analysis/concrete-address.c b/clang/test/Analysis/concrete-address.c new file mode 100644 index 0000000..f6c445e --- /dev/null +++ b/clang/test/Analysis/concrete-address.c @@ -0,0 +1,6 @@ +// RUN: %clang_cc1 -analyze -analyzer-checker=core,experimental.core -analyzer-store=region -verify %s + +void foo() { + int *p = (int*) 0x10000; // Should not crash here. + *p = 3; +} |