diff options
Diffstat (limited to 'test/Analysis/array-struct.c')
-rw-r--r-- | test/Analysis/array-struct.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/Analysis/array-struct.c b/test/Analysis/array-struct.c index e35985c79d..4b23421a3d 100644 --- a/test/Analysis/array-struct.c +++ b/test/Analysis/array-struct.c @@ -1,4 +1,5 @@ // RUN: clang -checker-simple -verify %s +// RUN: clang -checker-simple -analyzer-store-region -verify %s struct s { int data; @@ -17,3 +18,9 @@ void f(void) { q->data = 3; d.data_array[9] = 17; } + +void f2() { + char *p = "/usr/local"; + char (*q)[4]; + q = &"abc"; +} |