| 1 | // RUN: %clang_analyze_cc1 -analyzer-checker=core,alpha.core -analyzer-store=region -verify %s |
|---|---|
| 2 | // expected-no-diagnostics |
| 3 | |
| 4 | void foo() { |
| 5 | int *p = (int*) 0x10000; // Should not crash here. |
| 6 | *p = 3; |
| 7 | } |
| 8 |
| 1 | // RUN: %clang_analyze_cc1 -analyzer-checker=core,alpha.core -analyzer-store=region -verify %s |
|---|---|
| 2 | // expected-no-diagnostics |
| 3 | |
| 4 | void foo() { |
| 5 | int *p = (int*) 0x10000; // Should not crash here. |
| 6 | *p = 3; |
| 7 | } |
| 8 |