diff options
Diffstat (limited to 'test/Analysis/fields.c')
-rw-r--r-- | test/Analysis/fields.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/test/Analysis/fields.c b/test/Analysis/fields.c index a10d5a8060..da0847a560 100644 --- a/test/Analysis/fields.c +++ b/test/Analysis/fields.c @@ -26,10 +26,3 @@ void test() { Point p; (void)(p = getit()).x; } - - -void testNullAddress() { - Point *p = 0; - int *px = &p->x; // expected-warning{{Access to field 'x' results in a dereference of a null pointer (loaded from variable 'p')}} - *px = 1; // No warning because analysis stops at the previous line. -} |