1struct A {
2	int a;
3	int b[2];
4};
5
6struct B {
7	int c;
8	struct A d;
9};
10
11static struct B a= {1, {1, {1, 1}}};
12
13static int *b = &a.d.a;	// OK
14static int *c = &(&a.d)->a;	// OK
15static int *d = a.d.b;		// OK
16static int *e = (&a.d)->b;	// OK
17static int *f = &a.d.b[1];	// OK
18static int *g = &(&a.d)->b[1];	// OK
19
20/*
21 * check-name: constexpr static object's member address
22 * check-command: sparse -Wconstexpr-not-const $file
23 *
24 * check-error-start
25 * check-error-end
26 */
27