summaryrefslogtreecommitdiffstats
path: root/test/Analysis/fields.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Analysis/fields.c')
-rw-r--r--test/Analysis/fields.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Analysis/fields.c b/test/Analysis/fields.c
index c012a9d..900a6d6 100644
--- a/test/Analysis/fields.c
+++ b/test/Analysis/fields.c
@@ -8,3 +8,12 @@ void bar() {
*(unsigned*)&y = foo();
y.x = 1;
}
+
+struct s {
+ int n;
+};
+
+void f() {
+ struct s a;
+ int *p = &(a.n) + 1;
+}
OpenPOWER on IntegriCloud