a case where RegionStore doesn't create symbolic values for the fields of
structs that are passed-by-value.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@74662
91177308-0d34-0410-b5e6-
96231b3b80d8
-// RUN: clang-cc -analyze -checker-cfref -analyzer-store=basic -verify %s &&
-// RUN: clang-cc -analyze -checker-cfref -analyzer-store=region -verify %s
+// RUN: clang-cc -analyze -checker-cfref -analyzer-store=basic -verify %s
+
+// NOWORK: clang-cc -analyze -checker-cfref -analyzer-store=region -verify %s
#include <stdlib.h>
return p; // expected-warning{{Address of stack memory}}
}
+int array_test(int x[2]) {
+ return x[0]; // no-warning
+}
+
+struct baz { int x; };
+
+int struct_test(struct baz byVal) {
+ return byVal.x; // no-warning;
+}
+